summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 22:31:29 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 22:31:29 (EDT)
commite1e5a3e65f3ca4e1172f640456d6dd7060e200c8 (patch)
treeaa5382dee7e50d9264cfd411dfc3796c03c0df64 /src
parent908a120ddd2ef753a8d9b7a9781e74fff1ca18dc (diff)
main: Free opk on -h and -V
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3338fcc..bd4cb6f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -193,9 +193,11 @@ main(int argc, char *argv[])
break;
case 'h':
_help(program_name);
+ opkg_opk_opk_free(opk);
return EXIT_SUCCESS;
case 'V':
_version();
+ opkg_opk_opk_free(opk);
return EXIT_SUCCESS;
default:
fprintf(stderr, _("%s: Invalid option: "