Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b9d2e976
Commit
b9d2e976
authored
Feb 13, 2019
by
Pablo Galindo
Committed by
GitHub
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memory leak in parsetok.c (GH-11832)
parent
3dc67d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Parser/parsetok.c
Parser/parsetok.c
+2
-1
No files found.
Parser/parsetok.c
View file @
b9d2e976
...
...
@@ -370,7 +370,6 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
type_ignores
.
items
[
i
],
0
);
}
}
growable_int_array_deallocate
(
&
type_ignores
);
#ifndef PGEN
/* Check that the source for a single input statement really
...
...
@@ -405,6 +404,8 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
else
n
=
NULL
;
growable_int_array_deallocate
(
&
type_ignores
);
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
*
flags
=
ps
->
p_flags
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment