summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-17 10:02:44 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-17 10:02:44 +0200
commita9d526836e1160b2233bf26a2d1dd6584dec5dd4 (patch)
treea5831890baf099d2978e660a66057f1cbfaa498f /src/database.c
parent15c920ab9060413c6f084a71da4995f8a319813b (diff)
downloadapk-tools-a9d526836e1160b2233bf26a2d1dd6584dec5dd4.tar.gz
apk-tools-a9d526836e1160b2233bf26a2d1dd6584dec5dd4.tar.bz2
apk-tools-a9d526836e1160b2233bf26a2d1dd6584dec5dd4.tar.xz
apk-tools-a9d526836e1160b2233bf26a2d1dd6584dec5dd4.zip
apk: fix some unharmful leaks reported by valgrind
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index 11f705d..e6945c3 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1508,6 +1508,7 @@ void apk_db_close(struct apk_database *db)
for (i = 0; i < db->num_repos; i++) {
free(db->repos[i].url);
+ free(db->repos[i].description.ptr);
}
for (i = 0; i < db->protected_paths->num; i++)
free(db->protected_paths->item[i]);