diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-06 20:30:22 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-06 21:23:26 +0200 |
commit | 0314104d93b831f53a9ab21622ba61aa49b7cccd (patch) | |
tree | 765232ec3cd7a150cf3af46b425f43fdaf83dfc8 /src/hash.c | |
parent | 5e2aca267883a03dae8193eda9328a48b187fe84 (diff) | |
download | apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.gz apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.bz2 apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.tar.xz apk-tools-0314104d93b831f53a9ab21622ba61aa49b7cccd.zip |
db, pkg: fix rest of memory leaks
Diffstat (limited to 'src/hash.c')
-rw-r--r-- | src/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ int apk_hash_foreach(struct apk_hash *h, apk_hash_enumerator_f e, void *ctx) for (i = 0; i < h->buckets->num; i++) { hlist_for_each_safe(pos, n, &h->buckets->item[i]) { r = e(((void *) pos) - offset, ctx); - if (r != 0) + if (r != 0 && ctx != NULL) return r; } } |