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
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ int SYMEXPORT alpm_release(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
_alpm_handle_free(handle);
|
_alpm_handle_free(handle);
|
||||||
|
handle = NULL;
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue