mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix leaks detected by Coverity.
This commit is contained in:
@@ -2913,6 +2913,8 @@ static int reencrypt_decrypt_with_datashift_init(struct crypt_device *cd,
|
||||
|
||||
jobj_segments_old = reencrypt_segments_old(hdr);
|
||||
if (!jobj_segments_old) {
|
||||
dm_targets_free(cd, &dmd_target);
|
||||
free(CONST_CAST(void*)dmd_target.uuid);
|
||||
r = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user