[Python-checkins] r60036 - python/trunk/Parser/pgen.c

christian.heimes python-checkins at python.org
Fri Jan 18 08:45:30 CET 2008


Author: christian.heimes
Date: Fri Jan 18 08:45:30 2008
New Revision: 60036

Modified:
   python/trunk/Parser/pgen.c
Log:
Coverity issue CID #167
Event alloc_fn: Called allocation function "metacompile" [model]
Event var_assign: Assigned variable "gr" to storage returned from "metacompile"
		gr = metacompile(n);
Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model]
		g = maketables(gr);
  		translatelabels(g);
  		addfirstsets(g);
Event leaked_storage: Returned without freeing storage "gr"
		return g; 


Modified: python/trunk/Parser/pgen.c
==============================================================================
--- python/trunk/Parser/pgen.c	(original)
+++ python/trunk/Parser/pgen.c	Fri Jan 18 08:45:30 2008
@@ -667,6 +667,7 @@
 	g = maketables(gr);
 	translatelabels(g);
 	addfirstsets(g);
+	PyObject_FREE(gr);
 	return g;
 }
 


More information about the Python-checkins mailing list