From 002d2fda7a4e7f85798684c15809d30d27dc7034 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 30 Jun 2011 00:22:53 -0400 Subject: 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 Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2