diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-19 01:00:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-19 01:00:25 (GMT) |
commit | 9ac11a752a19c3b8607582a3d5ccb615c467124b (patch) | |
tree | fbc0b8a54aed12fcbbfb7e4c11c8d8d1e4ca14dc /Include | |
parent | 254ad58c0790f3bcf4ca510ba0e8a7c0f1546301 (diff) | |
download | cpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.zip cpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.tar.gz cpython-9ac11a752a19c3b8607582a3d5ccb615c467124b.tar.bz2 |
properly free memory in pgen
Diffstat (limited to 'Include')
-rw-r--r-- | Include/grammar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/grammar.h b/Include/grammar.h index 85120b9..f775f96 100644 --- a/Include/grammar.h +++ b/Include/grammar.h @@ -69,6 +69,7 @@ typedef struct { /* FUNCTIONS */ grammar *newgrammar(int start); +void freegrammar(grammar *g); dfa *adddfa(grammar *g, int type, const char *name); int addstate(dfa *d); void addarc(dfa *d, int from, int to, int lbl); |