diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-06-30 00:22:53 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-30 10:33:24 -0500 |
commit | 002d2fda7a4e7f85798684c15809d30d27dc7034 (patch) | |
tree | 8680fbfaf7cad5700253c44d9278c34b74ac3d18 /lib | |
parent | 2860ade2f5f827c41d84bc7826444792433c8009 (diff) | |
download | pacman-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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/alpm.c | 1 |
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 |