diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-17 19:46:11 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-17 19:46:11 -0700 |
commit | eaaa33bcf846da64096c0ba595e0523eafa04206 (patch) | |
tree | c26d02c4607d4d5c4b5440d798024ed3dcf1a760 /src | |
parent | 639e443e76653df440395ff6a56968000f8971c4 (diff) |
thunk_h: bump submodule for and use thunk_free()
thunk.h got some rudimentary environment caching, and in the
process introduced thunk_free().
Update the submodule and replace the bare free(closure) callsites
with thunk_free(closure).
This should help reduce the amount of malloc/free hammering in jio,
though there are still quite a few allocations for object payloads
in e.g. report-entry-arrays, and the object header space is allocated
as a thunk payload which doesn't get environment caching yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/journals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journals.c b/src/journals.c index 74c44dd..8211b6f 100644 --- a/src/journals.c +++ b/src/journals.c @@ -712,12 +712,12 @@ THUNK_DEFINE(journals_for_each, journals_t **, journals, journal_t **, journal_i r = thunk_dispatch_keep(closure); if (r < 0) { - free(closure); + thunk_free(closure); return r; } } - free(closure); + thunk_free(closure); return 0; } |