Fix leak of app variable on assert in hostpolicy (#50199)
authorOmair Majid <omajid@redhat.com>
Thu, 25 Mar 2021 02:04:22 +0000 (22:04 -0400)
committerGitHub <noreply@github.com>
Thu, 25 Mar 2021 02:04:22 +0000 (19:04 -0700)
commitc1c65b2bb04cef6f1fa38fa5968fa78d586bfbf8
tree5e20ab73c0f31619dd03b2f83dd2d0da3c62aaea
parent1a98ba0ec20550c9e1ece5fff555d683dec3252b
Fix leak of app variable on assert in hostpolicy (#50199)

This was caught by a static anlyzer that pointed out that if the assert
is hit and the method returns, app is never deallocated.
src/native/corehost/hostpolicy/hostpolicy.cpp