From: graham.gower Date: Sun, 15 Nov 2009 07:14:26 +0000 (+0000) Subject: Fix leak in error path. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12cd4c076b5974505097e41e22ef5dc8d78b85e1;p=oweals%2Fopkg-lede.git Fix leak in error path. git-svn-id: http://opkg.googlecode.com/svn/trunk@302 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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; }