summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/pkg.c')
-rw-r--r--libopkg/pkg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index 9ba44e8..1802ff0 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -509,6 +509,7 @@ void set_flags_from_control(opkg_conf_t *conf, pkg_t *pkg){
if (fp == NULL) {
opkg_message(conf, OPKG_ERROR, "fopen(%s): %s\n",
file_name, strerror(errno));
+ free(file_name);
return;
}