INN commit: trunk/nnrpd (python.c)

INN Commit Russ_Allbery at isc.org
Sun Jun 22 07:45:07 UTC 2008


    Date: Sunday, June 22, 2008 @ 00:45:07
  Author: iulius
Revision: 7885

Fix a segfault when one closes and then reopens Python in the same process.
files is still pointing to the old freed memory and INN blithely tries
to write to it.
Thanks to Russ Allbery for the patch.

Modified:
  trunk/nnrpd/python.c

----------+
 python.c |    1 +
 1 file changed, 1 insertion(+)

Modified: python.c
===================================================================
--- python.c	2008-06-21 17:12:50 UTC (rev 7884)
+++ python.c	2008-06-22 07:45:07 UTC (rev 7885)
@@ -465,6 +465,7 @@
     if (files != NULL) {
 	hash_traverse(files, file_trav, NULL);
 	hash_free(files);
+        files = NULL;
     }
     if (dynamic_file != NULL)
 	free(dynamic_file);



More information about the inn-committers mailing list