diff options
| author | Alex Henrie <alexhenrie24@gmail.com> | 2020-01-13 03:35:47 -0700 |
|---|---|---|
| committer | Pablo Galindo <Pablogsal@gmail.com> | 2020-01-13 10:35:47 +0000 |
| commit | 7ba6f18de2582755ae31888ba6a4237d96dddc48 (patch) | |
| tree | 3db93fb3dc40b3c153cfc6c082b3339bed548c8a /Parser/parsetok.c | |
| parent | b2b4a51f7463a0392456f7772f33223e57fa4ccc (diff) | |
| download | cpython-git-7ba6f18de2582755ae31888ba6a4237d96dddc48.tar.gz | |
bpo-39307: Fix memory leak on error path in parsetok (GH-17953)
Diffstat (limited to 'Parser/parsetok.c')
| -rw-r--r-- | Parser/parsetok.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index a5d78974b8..2bb733d0dc 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -246,6 +246,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, if ((ps = PyParser_New(g, start)) == NULL) { err_ret->error = E_NOMEM; + growable_comment_array_deallocate(&type_ignores); PyTokenizer_Free(tok); return NULL; } |
