summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/database.c1
-rw-r--r--src/package.c1
2 files changed, 2 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))
diff --git a/src/package.c b/src/package.c
index 1a13b77..32b218a 100644
--- a/src/package.c
+++ b/src/package.c
@@ -940,6 +940,7 @@ void apk_pkg_free(struct apk_package *pkg)
apk_pkg_uninstall(NULL, pkg);
apk_dependency_array_free(&pkg->depends);
+ apk_dependency_array_free(&pkg->provides);
apk_dependency_array_free(&pkg->install_if);
if (pkg->url)
free(pkg->url);