summaryrefslogtreecommitdiffstats
path: root/Parser/pgenmain.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-19 01:00:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-19 01:00:25 (GMT)
commit9ac11a752a19c3b8607582a3d5ccb615c467124b (patch)
treefbc0b8a54aed12fcbbfb7e4c11c8d8d1e4ca14dc /Parser/pgenmain.c
parent254ad58c0790f3bcf4ca510ba0e8a7c0f1546301 (diff)
downloadcpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.zip
cpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.tar.gz
cpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.tar.bz2
properly free memory in pgen
Diffstat (limited to 'Parser/pgenmain.c')
-rw-r--r--Parser/pgenmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c
index e9d3082..e386248 100644
--- a/Parser/pgenmain.c
+++ b/Parser/pgenmain.c
@@ -80,6 +80,7 @@ main(int argc, char **argv)
printf("Writing %s ...\n", graminit_h);
printnonterminals(g, fp);
fclose(fp);
+ freegrammar(g);
Py_Exit(0);
return 0; /* Make gcc -Wall happy */
}