From 7b1e119f8c28cf8b46ab5933c389a6d0b742ef21 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 18 Jan 2008 07:45:30 +0000 Subject: 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; --- Parser/pgen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Parser/pgen.c b/Parser/pgen.c index 76cb204..959a5d3 100644 --- a/Parser/pgen.c +++ b/Parser/pgen.c @@ -667,6 +667,7 @@ pgen(node *n) g = maketables(gr); translatelabels(g); addfirstsets(g); + PyObject_FREE(gr); return g; } -- cgit v0.12