Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9aedd2

Browse files
committed
woops these strings aren't kept around, free them
1 parent 6c96ffe commit a9aedd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ Py_Main(int argc, wchar_t **argv)
417417
"not enough memory to copy PYTHONWARNINGS");
418418
mbstowcs(warning, buf, len);
419419
PySys_AddWarnOption(warning);
420+
free(warning);
420421
}
421422
}
422423

0 commit comments

Comments
 (0)