- don't free an uninitialized pointer

This commit is contained in:
Nalin Dahyabhai 2009-12-01 20:53:07 +00:00
parent d19d1b26bb
commit 58eccb4e44

View File

@ -0,0 +1,13 @@
Don't free an uninitialized pointer. SF#2907102
diff -up cracklib-2.8.15/python/_cracklibmodule.c cracklib-2.8.15/python/_cracklibmodule.c
--- cracklib-2.8.15/python/_cracklibmodule.c 2009-12-01 15:39:57.000000000 -0500
+++ cracklib-2.8.15/python/_cracklibmodule.c 2009-12-01 15:39:59.000000000 -0500
@@ -106,6 +106,7 @@ _cracklib_FascistCheck(PyObject *self, P
return NULL;
}
free(dictfile);
+ defaultdict = NULL;
} else
{
defaultdict = strdup(GetDefaultCracklibDict());