diff --git a/PC/_msi.c b/PC/_msi.c index 99aef52e422..ae30acbc9b4 100644 --- a/PC/_msi.c +++ b/PC/_msi.c @@ -916,7 +916,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; }