diff options
author | Dan McGee <dan@archlinux.org> | 2010-01-19 21:52:54 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-01-19 21:52:54 -0600 |
commit | a12ed63545ee16d37da2b28bbf4c1820bd367315 (patch) | |
tree | 8ec92b01c1c51d4f7bc8e0159406247d779d2449 /lib/libalpm | |
parent | 335627d72dd5e51201b4cd53d84b70954946c013 (diff) | |
download | 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.c | 1 |
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); } |