summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-02-21 22:38:50 (EST)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-02-21 22:38:50 (EST)
commit7ac69b203f3dadd51fe32cfe503509005fa92803 (patch)
treeb9ddc8e7185af5dde740358a8bc588379adf2b92
parent5dc29c0675d04089d4f1d8616d6777861f072e21 (diff)
Fix memory leak when !defined(HAVE_GPGME) and !defined(HAVE_OPENSSL).
git-svn-id: http://opkg.googlecode.com/svn/trunk@608 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index 6d97789..574386e 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -685,7 +685,6 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback,
}
}
free(sig_file_name);
- free(list_file_name);
free(url);
}
#else
@@ -693,6 +692,7 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback,
" has not been enabled in this build\n",
list_file_name);
#endif
+ free(list_file_name);
sources_done++;
progress(pdata, 100 * sources_done / sources_list_count);