INN commit: trunk/nnrpd (python.c)
INN Commit
Russ_Allbery at isc.org
Sun Jun 22 07:52:45 UTC 2008
Date: Sunday, June 22, 2008 @ 00:52:44
Author: iulius
Revision: 7886
And also dynamic_file!
Modified:
trunk/nnrpd/python.c
----------+
python.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Modified: python.c
===================================================================
--- python.c 2008-06-22 07:45:07 UTC (rev 7885)
+++ python.c 2008-06-22 07:52:44 UTC (rev 7886)
@@ -457,7 +457,9 @@
/*
-** This runs when nnrpd shuts down.
+** This runs when nnrpd shuts down. If Python is closed and reopened
+** in the same process, files and dynamic_file are reused so they
+** must point to NULL.
*/
void
PY_close_python(void)
@@ -467,8 +469,10 @@
hash_free(files);
files = NULL;
}
- if (dynamic_file != NULL)
+ if (dynamic_file != NULL) {
free(dynamic_file);
+ dynamic_file = NULL;
+ }
}
/*
More information about the inn-committers
mailing list