crypto/block-luks: fix memory leak in qcrypto_block_luks_create
commitb640adca9f6a7f90b0975384b1264617ca8e0284
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 7 Dec 2018 16:13:47 +0000 (7 19:13 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 12 Dec 2018 11:16:49 +0000 (12 11:16 +0000)
treec015a4a3e8197e188ae7de400863cd3549aa7a87
parenta8b826d47adc5a62cf325482b6da1ba06d143df7
crypto/block-luks: fix memory leak in qcrypto_block_luks_create

Free block->cipher and block->ivgen on error path.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/block-luks.c