summaryrefslogtreecommitdiffstats
path: root/PC/_msi.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-07 10:50:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-07 10:50:41 (GMT)
commitef6f224ae6cd63f47bd2bf7084b8f982d9825be7 (patch)
treea249d58ee99ae897df70c3ef958f69c51cebfedd /PC/_msi.c
parente65617f65e203a2a6d3e3100d0d6fed0ffa0613d (diff)
downloadcpython-ef6f224ae6cd63f47bd2bf7084b8f982d9825be7.zip
cpython-ef6f224ae6cd63f47bd2bf7084b8f982d9825be7.tar.gz
cpython-ef6f224ae6cd63f47bd2bf7084b8f982d9825be7.tar.bz2
Fix a memory leak in _msi.c (GH-4127) (#4309)
(cherry picked from commit cb04f7518292108d68e5ba4c685ca2bf2da18eab)
Diffstat (limited to 'PC/_msi.c')
-rw-r--r--PC/_msi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 15aa7d8..2ab7e73 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*