diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-06-12 10:16:34 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-06-12 10:18:06 +0300 |
commit | c4295e9cf8132588c84b1f4e5907b023cbc7a8f6 (patch) | |
tree | 75859d26edf87706cfd452fb95c32cdce2a0e0c8 /src/database.c | |
parent | 6b140ec5c719175393101d5f723371303e09426e (diff) | |
download | apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.gz apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.bz2 apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.tar.xz apk-tools-c4295e9cf8132588c84b1f4e5907b023cbc7a8f6.zip |
for completeness free all arrays before exit
so valgrind does not report any leaks
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index 2056a89..cafcfe8 100644 --- a/src/database.c +++ b/src/database.c @@ -258,6 +258,7 @@ void apk_db_dir_unref(struct apk_database *db, struct apk_db_dir *dir, int rmdir { if (--dir->refs > 0) return; db->installed.stats.dirs--; + apk_protected_path_array_free(&dir->protected_paths); if (dir->namelen == 0) return; if (rmdir_mode == APK_DIR_REMOVE && !(apk_flags & APK_SIMULATE)) |