Skip to content

Commit cf87fe4

Browse files
PEP 788: Fix incorrect call to free (#4725)
1 parent 9db7c1e commit cf87fe4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

peps/pep-0788.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ With this PEP, you would implement it like this:
553553
return -1;
554554
}
555555
int res = PyFile_WriteString(to_write, file);
556-
free(to_write);
557556
if (res < 0) {
558557
PyErr_Print();
559558
}

0 commit comments

Comments
 (0)