[Python-checkins] commit of r41447 - python/trunk/Parser
neal.norwitz@python.org
neal.norwitz at python.org
Tue Nov 15 05:54:24 CET 2005
Author: neal.norwitz
Date: Tue Nov 15 05:54:23 2005
New Revision: 41447
Modified:
python/trunk/Parser/parsetok.c
Log:
Prevent unlikely memory leak, tok should always be freed when parsetok() returns
Modified: python/trunk/Parser/parsetok.c
==============================================================================
--- python/trunk/Parser/parsetok.c (original)
+++ python/trunk/Parser/parsetok.c Tue Nov 15 05:54:23 2005
@@ -108,6 +108,7 @@
if ((ps = PyParser_New(g, start)) == NULL) {
fprintf(stderr, "no mem for new parser\n");
err_ret->error = E_NOMEM;
+ PyTokenizer_Free(tok);
return NULL;
}
#if 0 /* future keyword */
More information about the Python-checkins
mailing list