8000 Fix a memory leak in _msi.c (#4127) · python/cpython@cb04f75 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb04f75

Browse files
ZackerySpytzvstinner
authored andcommitted
Fix a memory leak in _msi.c (#4127)
1 parent 4135c89 commit cb04f75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PC/_msi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ msiobj_dealloc(msiobj* msidb)
283283
{
284284
MsiCloseHandle(msidb->h);
285285
msidb->h = 0;
286+
PyObject_Del(msidb);
286287
}
287288

288289
static PyObject*

0 commit comments

Comments
 (0)
0