summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-22 01:46:31 +0000
committermidipix <writeonce@midipix.org>2024-01-22 03:49:50 +0000
commit1eb9281c5f2289f8ddd0d5820b5972b096bf7753 (patch)
treeaede9a397db6c0e9b252ad138ea6bb866702081b /src/logic
parentb87f7032b8573966b0537698544c65fbb3f2c143 (diff)
downloadslibtool-1eb9281c5f2289f8ddd0d5820b5972b096bf7753.tar.bz2
slibtool-1eb9281c5f2289f8ddd0d5820b5972b096bf7753.tar.xz
slbt_exec_ar(): --help: properly release the argv meta data context memory.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_ar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ar.c b/src/logic/slbt_exec_ar.c
index 18ee97e..d4f01e8 100644
--- a/src/logic/slbt_exec_ar.c
+++ b/src/logic/slbt_exec_ar.c
@@ -140,7 +140,10 @@ int slbt_exec_ar(
0,optv,0,ectx,
dctx->cctx->drvflags
& SLBT_DRIVER_ANNOTATE_NEVER);
- return 0;
+
+ argv_free(meta);
+
+ return SLBT_OK;
case TAG_AR_VERSION:
ictx->cctx.drvflags |= SLBT_DRIVER_VERSION;