projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
opkg: (leak fixing, day 3) fixed final memory leaks fixed reported from
[oweals/opkg-lede.git]
/
libopkg
/
pkg_hash.c
diff --git
a/libopkg/pkg_hash.c
b/libopkg/pkg_hash.c
index f38c6cada4e89c5399f108b5427d2f06f0219d4c..2fb0d1d8bf4a44639816f11a057ed449326aa73f 100644
(file)
--- a/
libopkg/pkg_hash.c
+++ b/
libopkg/pkg_hash.c
@@
-140,6
+140,7
@@
int pkg_hash_add_from_file(opkg_conf_t *conf, const char *file_name,
}
hash_insert_pkg(hash, pkg, is_status_file,conf);
} else {
+ pkg_deinit (pkg);
free(pkg);
}
}