From: graham.gower Date: Sun, 15 Nov 2009 09:42:53 +0000 (+0000) Subject: Fix a subtle leak. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5939d9f5d35ddd634e03ab2d36f5389a37ec150;p=oweals%2Fopkg-lede.git Fix a subtle leak. git-svn-id: http://opkg.googlecode.com/svn/trunk@309 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index 3cdc349..ab21ae9 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -306,7 +306,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name pkg = hash_insert_pkg(&conf->pkg_hash, pkg, 1,conf); if (namep) { - *namep = xstrdup(pkg->name); + *namep = pkg->name; } return 0; }