summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/alpm.c1
-rw-r--r--lib/libalpm/util.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index abbc7db8..7780c1fd 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -117,6 +117,7 @@ int SYMEXPORT alpm_release(alpm_handle_t *myhandle)
ret = -1;
}
+ _alpm_handle_unlock(myhandle);
_alpm_handle_free(myhandle);
#ifdef HAVE_LIBCURL
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 991898e1..8bcb5463 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -300,7 +300,7 @@ int _alpm_unpack(alpm_handle_t *handle, const char *archive, const char *prefix,
/* If specific files were requested, skip entries that don't match. */
if(list) {
char *entry_prefix = strdup(entryname);
- char *p = strstr(prefix,"/");
+ char *p = strstr(entry_prefix,"/");
if(p) {
*(p+1) = '\0';
}