From a12ed63545ee16d37da2b28bbf4c1820bd367315 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 19 Jan 2010 21:52:54 -0600 Subject: [PATCH] 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 --- lib/libalpm/alpm.c | 1 + 1 file changed, 1 insertion(+) 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); }