1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 03:54:59 -05:00

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>
This commit is contained in:
Dave Reisner 2011-06-30 00:22:53 -04:00 committed by Dan McGee
parent 2860ade2f5
commit 002d2fda7a

View File

@ -117,6 +117,7 @@ int SYMEXPORT alpm_release(pmhandle_t *myhandle)
ret = -1; ret = -1;
} }
_alpm_handle_unlock(myhandle);
_alpm_handle_free(myhandle); _alpm_handle_free(myhandle);
#ifdef HAVE_LIBCURL #ifdef HAVE_LIBCURL