diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-15 04:42:53 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-15 04:42:53 (EST) |
commit | a5939d9f5d35ddd634e03ab2d36f5389a37ec150 (patch) | |
tree | 8896ab3ce31fde55ae5c5b5f7f7331d7da1657ca /libopkg | |
parent | b6349400c742950c6d0f37b73a5b76605ee8dff4 (diff) |
Fix a subtle leak.
git-svn-id: http://opkg.googlecode.com/svn/trunk@309 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_download.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |