diff --git a/PC/_msi.c b/PC/_msi.c index 4000f00c763bc3..3c46d8349cfdfc 100644 --- a/PC/_msi.c +++ b/PC/_msi.c @@ -894,7 +894,7 @@ msidb_getsummaryinformation(msiobj *db, PyObject *args) return msierror(status); oresult = PyObject_NEW(struct msiobj, &summary_Type); - if (!result) { + if (!oresult) { MsiCloseHandle(result); return NULL; }