1
0
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:
Dan McGee 2010-01-19 21:52:54 -06:00
parent 335627d72d
commit a12ed63545

View File

@ -71,6 +71,7 @@ int SYMEXPORT alpm_release(void)
}
_alpm_handle_free(handle);
handle = NULL;
return(0);
}