From e1e5a3e65f3ca4e1172f640456d6dd7060e200c8 Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Fri, 28 Apr 2023 22:31:29 -0400
Subject: main: Free opk on -h and -V

---
(limited to 'src')

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: "
--
cgit v0.9.1