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 94f416c7782d5c1a30bdc05b67e28031fbf958b7..ab21ae9e182cce47a0205ab1f83fb4a6145aaac1 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-117,7
+117,6
@@
int opkg_download(opkg_conf_t *conf, const char *src,
}
#ifdef HAVE_CURL
- CURL *curl;
CURLcode res;
FILE * file = fopen (tmp_file_location, "w");
@@
-307,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;
}