Commit f12a68cc authored by Fred Drake's avatar Fred Drake

Fix memory leak. This is (very!) similar to part of SF patch #478006.

parent 03f96bd8
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment