summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-01-20 04:52:54 +0100
committerDan McGee <dan@archlinux.org>2010-01-20 04:52:54 +0100
commita12ed63545ee16d37da2b28bbf4c1820bd367315 (patch)
tree8ec92b01c1c51d4f7bc8e0159406247d779d2449 /lib/libalpm
parent335627d72dd5e51201b4cd53d84b70954946c013 (diff)
downloadpacman-a12ed63545ee16d37da2b28bbf4c1820bd367315.tar.gz
pacman-a12ed63545ee16d37da2b28bbf4c1820bd367315.tar.xz
NULL out handle after release
We free'd the handle but didn't NULL out the global variable, leading to problems if you try to reinitialize the library. Make sure we clean up after ourselves. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-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 6ab65161..82502562 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -71,6 +71,7 @@ int SYMEXPORT alpm_release(void)
}
_alpm_handle_free(handle);
+ handle = NULL;
return(0);
}