From 2884e5294af115fdf1245c2e85667680c22773e1 Mon Sep 17 00:00:00 2001 From: Matthew LeVan <matthew@coeli.network> Date: Tue, 19 Sep 2023 10:25:39 -0400 Subject: [PATCH] wip: amadeo fix da leak mon --- pkg/noun/jets.c | 2 -- pkg/noun/nock.c | 2 +- pkg/noun/zave.c | 4 +++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/noun/jets.c b/pkg/noun/jets.c index 71968b6345..13e417dab6 100644 --- a/pkg/noun/jets.c +++ b/pkg/noun/jets.c @@ -18,8 +18,6 @@ #include "vortex.h" #include "xtract.h" -/** Data structures. -**/ /** Functions. **/ diff --git a/pkg/noun/nock.c b/pkg/noun/nock.c index 608368f31f..452b04c309 100644 --- a/pkg/noun/nock.c +++ b/pkg/noun/nock.c @@ -2639,7 +2639,7 @@ _n_burn(u3n_prog* pog_u, u3_noun bus, c3_ys mov, c3_ys off) u3z_save_m(u3h(o), 144 + c3__nock, u3t(o), x); } else if ( u3z_memo_keep == u3h(o) ) { - fprintf(stderr, "nock: userspace can't save to persistent cache\r\n"); + fprintf(stderr, "\r\nnock: userspace can't save to persistent cache\r\n"); } *top = x; u3z(o); diff --git a/pkg/noun/zave.c b/pkg/noun/zave.c index 53538087b6..596200f887 100644 --- a/pkg/noun/zave.c +++ b/pkg/noun/zave.c @@ -77,8 +77,10 @@ u3z_find_m(u3z_cid cid, c3_m fun, u3_noun one) { u3_noun key = u3nc(fun, u3k(one)); u3_weak val; + val = u3z_find(cid, key); + u3z(key); - return u3z_find(cid, key); + return val; } /* u3z_save(): save in memo cache. TRANSFER key; RETAIN val