diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-18 07:45:30 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-18 07:45:30 (GMT) |
commit | 7b1e119f8c28cf8b46ab5933c389a6d0b742ef21 (patch) | |
tree | 7f736eef7807ea2fd753b898a51562d3b786bb0a /Parser | |
parent | 62a8e95fea9b4cb9e4d986aaa554f3e9927d973e (diff) | |
download | cpython-7b1e119f8c28cf8b46ab5933c389a6d0b742ef21.zip cpython-7b1e119f8c28cf8b46ab5933c389a6d0b742ef21.tar.gz cpython-7b1e119f8c28cf8b46ab5933c389a6d0b742ef21.tar.bz2 |
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;
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/pgen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |