[Python-checkins] Fix a memory leak in _msi.c (GH-4127) (#4309)

Victor Stinner webhook-mailer at python.org
Tue Nov 7 05:50:44 EST 2017


https://github.com/python/cpython/commit/ef6f224ae6cd63f47bd2bf7084b8f982d9825be7
commit: ef6f224ae6cd63f47bd2bf7084b8f982d9825be7
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-11-07T02:50:41-08:00
summary:

Fix a memory leak in _msi.c (GH-4127) (#4309)

(cherry picked from commit cb04f7518292108d68e5ba4c685ca2bf2da18eab)

files:
M PC/_msi.c

diff --git a/PC/_msi.c b/PC/_msi.c
index 15aa7d8fecf..2ab7e731a1e 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -284,6 +284,7 @@ msiobj_dealloc(msiobj* msidb)
 {
     MsiCloseHandle(msidb->h);
     msidb->h = 0;
+    PyObject_Del(msidb);
 }
 
 static PyObject*



More information about the Python-checkins mailing list