mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Fix a few more memory leaks
Document more info about the benefits of configuring without pymalloc when running valgrind
This commit is contained in:
parent
4aef41ffe7
commit
7bcabc60a3
4 changed files with 29 additions and 3 deletions
|
@ -2384,7 +2384,10 @@ compiler_import_as(struct compiler *c, identifier name, identifier asname)
|
|||
dot = strchr(src, '.');
|
||||
attr = PyString_FromStringAndSize(src,
|
||||
dot ? dot - src : strlen(src));
|
||||
if (!attr)
|
||||
return -1;
|
||||
ADDOP_O(c, LOAD_ATTR, attr, names);
|
||||
Py_DECREF(attr);
|
||||
src = dot + 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue