summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-09 15:59:36 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-09 15:59:36 (GMT)
commitf12a68ccd0b40821fd15044ddb0d51e488d92efd (patch)
tree1fe7ce4b5c07865178f0e139a45bd8fb0f606936 /Modules
parent03f96bd8f5c7b93c8836ce5219b075c70e240927 (diff)
downloadcpython-f12a68ccd0b40821fd15044ddb0d51e488d92efd.zip
cpython-f12a68ccd0b40821fd15044ddb0d51e488d92efd.tar.gz
cpython-f12a68ccd0b40821fd15044ddb0d51e488d92efd.tar.bz2
Fix memory leak. This is (very!) similar to part of SF patch #478006.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hotshot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index b17be9f..3b8d616 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();