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

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


https://github.com/python/cpython/commit/b74c3d410d9c3682c905cf5b9e777747e86e1e87
commit: b74c3d410d9c3682c905cf5b9e777747e86e1e87
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017年11月07日T02:33:41-08:00
summary:
Fix a memory leak in _msi.c (GH-4127) (#4308)
(cherry picked from commit cb04f7518292108d68e5ba4c685ca2bf2da18eab)
files:
M PC/_msi.c
diff --git a/PC/_msi.c b/PC/_msi.c
index d56b5d10dc9..d7700f09c74 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -271,6 +271,7 @@ msiobj_dealloc(msiobj* msidb)
 {
 MsiCloseHandle(msidb->h);
 msidb->h = 0;
+ PyObject_Del(msidb);
 }
 
 static PyObject*


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /