From a5939d9f5d35ddd634e03ab2d36f5389a37ec150 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Sun, 15 Nov 2009 09:42:53 +0000 Subject: [PATCH] Fix a subtle leak. git-svn-id: http://opkg.googlecode.com/svn/trunk@309 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg_download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1