diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-01-30 23:46:13 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-01-30 23:46:22 -0500 |
commit | b366b477b5d7b740212987113f27e9161734f124 (patch) | |
tree | 2bdee3ecd7abef2a7cb35dd9b4426d3d3e9c9da1 /src | |
parent | f64f82bc6a1aec53a924d21deb65a60da1020d0e (diff) | |
download | stasis-b366b477b5d7b740212987113f27e9161734f124.tar.gz |
Indexer fixes:
* Free resources
* Use correct pointer type for rootdirs array
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/stasis_indexer/stasis_indexer_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |