summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-30 00:22:53 -0400
committerDan McGee <dan@archlinux.org>2011-06-30 10:33:24 -0500
commit002d2fda7a4e7f85798684c15809d30d27dc7034 (patch)
tree8680fbfaf7cad5700253c44d9278c34b74ac3d18
parent2860ade2f5f827c41d84bc7826444792433c8009 (diff)
downloadpacman-002d2fda7a4e7f85798684c15809d30d27dc7034.tar.xz
lib/alpm: unlock the handle before freeing it
This avoids, probably among other things, leaving the lock file in place after a SIGINT'd sync DB update. Fixes regression introduced in 4f8ae2b. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/alpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index b0bbbe8c..d35512bd 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -117,6 +117,7 @@ int SYMEXPORT alpm_release(pmhandle_t *myhandle)
ret = -1;
}
+ _alpm_handle_unlock(myhandle);
_alpm_handle_free(myhandle);
#ifdef HAVE_LIBCURL