mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Fix memory leak reported by valgrind while running test_subprocess
This commit is contained in:
parent
210262c0ec
commit
e75cad6125
1 changed files with 2 additions and 0 deletions
|
@ -2721,6 +2721,8 @@ redo_stat_for_length:
|
|||
*/
|
||||
if (size == 0 && (flags & DB_FAST_STAT)) {
|
||||
flags = 0;
|
||||
if (!err)
|
||||
free(sp);
|
||||
goto redo_stat_for_length;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue