Skip to content

Commit

Permalink
wip: amadeo fix da leak mon
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Sep 19, 2023
1 parent 78c294c commit 2884e52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/noun/jets.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include "vortex.h"
#include "xtract.h"

/** Data structures.
**/

/** Functions.
**/
Expand Down
2 changes: 1 addition & 1 deletion pkg/noun/nock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion pkg/noun/zave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2884e52

Please sign in to comment.