diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-18 07:45:30 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-18 07:45:30 +0000 |
commit | 85861fb313a419427e764ac05a3688e7e649cb6a (patch) | |
tree | 690f261be1343ebff1d3b359ae2d1f06404305fb /Parser | |
parent | 3d93ec47ec310c254cabeaa689d5c8ab51883d36 (diff) | |
download | cpython-85861fb313a419427e764ac05a3688e7e649cb6a.tar.gz |
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 76cb204751..959a5d3443 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; } |