Set dictionnary to NULL in lzsa_dictionary_free

Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
This commit is contained in:
Francois Berder 2019-08-28 09:39:07 +01:00
parent 2d213bcff1
commit da67938978

View File

@ -96,6 +96,6 @@ int lzsa_dictionary_load(const char *pszDictionaryFilename, void **ppDictionaryD
void lzsa_dictionary_free(void **ppDictionaryData) {
if (*ppDictionaryData) {
free(*ppDictionaryData);
ppDictionaryData = NULL;
*ppDictionaryData = NULL;
}
}