From: Zackery Spytz Date: Thu, 7 Mar 2019 18:20:13 +0000 (-0700) Subject: bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074) X-Git-Tag: v3.8.0a3~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf94cc7b496a379e1f604aa2e4080bb70ca4020e;p=thirdparty%2FPython%2Fcpython.git bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074) --- diff --git a/PC/_msi.c b/PC/_msi.c index 99aef52e422b..ae30acbc9b48 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; }