summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-08 06:26:28 +0200
committerDan McGee <dan@archlinux.org>2011-06-08 09:48:43 +0200
commit2668782db282130bc1f845173228371d3447e4a2 (patch)
tree40c2a090d8ac7f7b79445b4bce184583a6b0d5d8 /lib
parent8c6a636cd970c19e7a79bb17c484b28454da877d (diff)
downloadpacman-2668782db282130bc1f845173228371d3447e4a2.tar.gz
pacman-2668782db282130bc1f845173228371d3447e4a2.tar.xz
Plug a memory leak
Introduced by me in commit cc25576f8b54b3. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index aeba86f1..0c50c424 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -498,6 +498,7 @@ static int sync_db_read(pmdb_t *db, struct archive *archive,
_alpm_log(PM_LOG_DEBUG, "unknown database file: %s\n", filename);
}
+ FREE(pkgname);
return 0;
error: