From: Fred Drake Date: Fri, 9 Nov 2001 15:59:36 +0000 (+0000) Subject: Fix memory leak. This is (very!) similar to part of SF patch #478006. X-Git-Tag: v2.2.1c1~823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12a68ccd0b40821fd15044ddb0d51e488d92efd;p=thirdparty%2FPython%2Fcpython.git Fix memory leak. This is (very!) similar to part of SF patch #478006. --- diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index b17be9fa57c3..3b8d616e96ca 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();