From 12cd4c076b5974505097e41e22ef5dc8d78b85e1 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Sun, 15 Nov 2009 02:14:26 -0500 Subject: Fix leak in error path. git-svn-id: http://opkg.googlecode.com/svn/trunk@302 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg.c') 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; } -- cgit v0.9.1