From b366b477b5d7b740212987113f27e9161734f124 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 30 Jan 2025 23:46:13 -0500 Subject: Indexer fixes: * Free resources * Use correct pointer type for rootdirs array --- src/cli/stasis_indexer/stasis_indexer_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cli/stasis_indexer/stasis_indexer_main.c b/src/cli/stasis_indexer/stasis_indexer_main.c index ef39394..86f7834 100644 --- a/src/cli/stasis_indexer/stasis_indexer_main.c +++ b/src/cli/stasis_indexer/stasis_indexer_main.c @@ -204,7 +204,7 @@ int main(const int argc, char *argv[]) { const int current_index = optind; if (optind < argc) { rootdirs_total = argc - current_index; - rootdirs = calloc(rootdirs_total + 1, sizeof(**rootdirs)); + rootdirs = calloc(rootdirs_total + 1, sizeof(*rootdirs)); int i = 0; while (optind < argc) { @@ -391,8 +391,12 @@ int main(const int argc, char *argv[]) { guard_free(destdir); GENERIC_ARRAY_FREE(rootdirs); guard_strlist_free(&metafiles); + guard_free(m.micromamba_prefix); delivery_free(&ctx); + guard_free(local); globals_free(); + msg(STASIS_MSG_L1, "Done!\n"); + return 0; } -- cgit