msi: Fix possible crash bugs in error path.
This commit is contained in:
parent
42c7372b6b
commit
3700913803
|
@ -158,6 +158,7 @@ static UINT ACTION_AppSearchGetSignature(MSIPACKAGE *package, MSISIGNATURE *sig,
|
|||
TRACE("Languages is %s\n", debugstr_w(sig->Languages));
|
||||
|
||||
end:
|
||||
if (row)
|
||||
msiobj_release(&row->hdr);
|
||||
MSI_ViewClose(view);
|
||||
msiobj_release(&view->hdr);
|
||||
|
@ -220,6 +221,7 @@ static UINT ACTION_AppSearchComponents(MSIPACKAGE *package, BOOL *appFound,
|
|||
debugstr_w(guid));
|
||||
|
||||
end:
|
||||
if (row)
|
||||
msiobj_release(&row->hdr);
|
||||
MSI_ViewClose(view);
|
||||
msiobj_release(&view->hdr);
|
||||
|
@ -393,6 +395,7 @@ end:
|
|||
msi_free( keyPath);
|
||||
msi_free( valueName);
|
||||
|
||||
if (row)
|
||||
msiobj_release(&row->hdr);
|
||||
MSI_ViewClose(view);
|
||||
msiobj_release(&view->hdr);
|
||||
|
@ -448,6 +451,7 @@ static UINT ACTION_AppSearchIni(MSIPACKAGE *package, BOOL *appFound,
|
|||
msi_free( fileName);
|
||||
|
||||
end:
|
||||
if (row)
|
||||
msiobj_release(&row->hdr);
|
||||
MSI_ViewClose(view);
|
||||
msiobj_release(&view->hdr);
|
||||
|
@ -872,6 +876,7 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, MSISIGNATURE *sig)
|
|||
rc = ACTION_SearchDirectory(package, sig, expanded, depth);
|
||||
|
||||
end:
|
||||
if (row)
|
||||
msiobj_release(&row->hdr);
|
||||
MSI_ViewClose(view);
|
||||
msiobj_release(&view->hdr);
|
||||
|
|
Loading…
Reference in New Issue