From ae7b2930f6ae6389e1b9cd655c85f44039652b4f Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Tue, 2 Dec 2025 13:30:01 -0500 Subject: [PATCH] PEP 788: Fix incorrect call to `free` --- peps/pep-0788.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/peps/pep-0788.rst b/peps/pep-0788.rst index 835234cbc23..5c328e6b815 100644 --- a/peps/pep-0788.rst +++ b/peps/pep-0788.rst @@ -553,7 +553,6 @@ With this PEP, you would implement it like this: return -1; } int res = PyFile_WriteString(to_write, file); - free(to_write); if (res < 0) { PyErr_Print(); }