________________________________ From: Eric Blake <ebl...@redhat.com> Sent: Friday, March 20, 2020 9:36 PM To: qemu-devel@nongnu.org <qemu-devel@nongnu.org> Cc: peter.mayd...@linaro.org <peter.mayd...@linaro.org>; Andrey Shinkevich <andrey.shinkev...@virtuozzo.com>; Kevin Wolf <kw...@redhat.com>; Max Reitz <mre...@redhat.com>; open list:qcow2 <qemu-bl...@nongnu.org> Subject: [PATCH] block: Avoid memleak on qcow2 image info failure
If we fail to get bitmap info, we must not leak the encryption info. Fixes: b8968c875f403 Fixes: Coverity CID 1421894 Signed-off-by: Eric Blake <ebl...@redhat.com> --- Thank you Eric. I have made a smoke test only without the crypto object instantiation. Andrey Reviewed-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Tested-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com>