From: pixdamix Date: Fri, 30 Oct 2009 15:07:59 +0000 (+0000) Subject: Add missing free (again) X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=b4e6c27c089a4662b4c88396fcbb495921b431e8 Add missing free (again) git-svn-id: http://opkg.googlecode.com/svn/trunk@230 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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[] = {