From eaaa33bcf846da64096c0ba595e0523eafa04206 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 17 Aug 2021 19:46:11 -0700 Subject: 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. --- src/journals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3