Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
62401021
Commit
62401021
authored
24 years ago
by
Vladimir Marangozov
Browse files
Options
Download
Email Patches
Plain Diff
Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().
parent
02c49b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Modules/regexmodule.c
Modules/regexmodule.c
+1
-1
No files found.
Modules/regexmodule.c
View file @
62401021
...
...
@@ -43,7 +43,7 @@ static void
reg_dealloc
(
regexobject
*
re
)
{
if
(
re
->
re_patbuf
.
buffer
)
PyMem_DEL
(
re
->
re_patbuf
.
buffer
);
free
(
re
->
re_patbuf
.
buffer
);
Py_XDECREF
(
re
->
re_translate
);
Py_XDECREF
(
re
->
re_lastok
);
Py_XDECREF
(
re
->
re_groupindex
);
...
...
This diff is collapsed.
Click to expand it.
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