diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index b17be9fa57c..3b8d616e96c 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -1444,6 +1444,7 @@ write_header(ProfilerObject *self) (self->linetimings ? "yes" : "no")); pack_add_info(self, "platform", Py_GetPlatform()); pack_add_info(self, "executable", Py_GetProgramFullPath()); + free(buffer); buffer = (char *) Py_GetVersion(); if (buffer == NULL) PyErr_Clear();