From a5939d9f5d35ddd634e03ab2d36f5389a37ec150 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Sun, 15 Nov 2009 04:42:53 -0500 Subject: Fix a subtle leak. git-svn-id: http://opkg.googlecode.com/svn/trunk@309 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') 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; } -- cgit v0.9.1