bpo-39307: Fix memory leak on error path in parsetok (GH-17953)

(cherry picked from commit 7ba6f18de2582755ae31888ba6a4237d96dddc48)

Co-authored-by: Alex Henrie <alexhenrie24@gmail.com>
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index a5d7897..2bb733d 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -246,6 +246,7 @@
 
     if ((ps = PyParser_New(g, start)) == NULL) {
         err_ret->error = E_NOMEM;
+        growable_comment_array_deallocate(&type_ignores);
         PyTokenizer_Free(tok);
         return NULL;
     }