summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-15 02:14:26 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-15 02:14:26 (EST)
commit12cd4c076b5974505097e41e22ef5dc8d78b85e1 (patch)
tree6de21d8529e871119dd92de213d055623511f1e8
parentd1f5d3cf0cbf26f82cf76a09a0cdca685aee9443 (diff)
Fix leak in error path.
git-svn-id: http://opkg.googlecode.com/svn/trunk@302 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-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;
}