Skip to content

Commit f9452c6

Browse files
committed
Fix leak
1 parent 27e98dc commit f9452c6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Programs/_testembed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,7 @@ static int check_use_frozen_modules(const char *rawval)
20722072
wcscpy(optval, L"frozen_modules=");
20732073
if ((wcslen(optval) + wcslen(val)) >= Py_ARRAY_LENGTH(optval)) {
20742074
error("TESTFROZEN is too long");
2075+
PyMem_RawFree(val);
20752076
return -1;
20762077
}
20772078
wcscat(optval, val);

0 commit comments

Comments
 (0)