mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
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>
This commit is contained in:
parent
335627d72d
commit
a12ed63545
@ -71,6 +71,7 @@ int SYMEXPORT alpm_release(void)
|
||||
}
|
||||
|
||||
_alpm_handle_free(handle);
|
||||
handle = NULL;
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user