projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a subtle leak.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_download.c
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index 3cdc349fa90fcb44c72d01d96ef2370195500024..ab21ae9e182cce47a0205ab1f83fb4a6145aaac1 100644
(file)
--- 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;
}