summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-30 11:07:59 (EDT)
committer pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-30 11:07:59 (EDT)
commitb4e6c27c089a4662b4c88396fcbb495921b431e8 (patch)
tree5c589e15953cad891db8ca9f88617f57363caabb /libopkg
parent8fe2c7a40a79c7d1b68bd00955729e94a21a0ea5 (diff)
Add missing free (again)
git-svn-id: http://opkg.googlecode.com/svn/trunk@230 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_conf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c
index 1312c41..a261a18 100644
--- a/libopkg/opkg_conf.c
+++ b/libopkg/opkg_conf.c
@@ -75,8 +75,10 @@ int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options)
{ "proxy_user", OPKG_OPT_TYPE_STRING, &conf->proxy_user },
{ "query-all", OPKG_OPT_TYPE_BOOL, &conf->query_all },
{ "verbosity", OPKG_OPT_TYPE_BOOL, &conf->verbosity },
+#if defined(HAVE_OPENSSL)
{ "signature_ca_file", OPKG_OPT_TYPE_STRING, &conf->signature_ca_file },
{ "signature_ca_path", OPKG_OPT_TYPE_STRING, &conf->signature_ca_path },
+#endif
{ NULL }
};
@@ -366,6 +368,11 @@ void opkg_conf_deinit(opkg_conf_t *conf)
opkg_conf_free_string(&conf->cache);
+#if defined(HAVE_OPENSSL)
+ opkg_conf_free_string(&conf->signature_ca_file);
+ opkg_conf_free_string(&conf->signature_ca_path);
+#endif
+
if (conf->verbosity > 1) {
int i;
hash_table_t *hashes[] = {