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
1 changed files with 1 additions and 0 deletions

View File

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