From 92af5d9fec99d5a0caef391eabf55e425ec7e615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Tue, 31 Mar 2009 17:47:50 +0000 Subject: Fix a leaking "pathname" in import.c --- Python/import.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/import.c b/Python/import.c index 529c3c2..3a3c9f2 100644 --- a/Python/import.c +++ b/Python/import.c @@ -3114,6 +3114,7 @@ imp_load_source(PyObject *self, PyObject *args) return NULL; } m = load_source_module(name, pathname, fp); + PyMem_Free(pathname); fclose(fp); return m; } -- cgit v0.12