mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-10 10:20:01 +01:00
Fix memleak in reencryption with moved segment.
This commit is contained in:
@@ -658,6 +658,8 @@ void LUKS2_reenc_context_free(struct crypt_device *cd, struct luks2_reenc_contex
|
||||
rh->jobj_segment_old = NULL;
|
||||
json_object_put(rh->jobj_segment_new);
|
||||
rh->jobj_segment_new = NULL;
|
||||
json_object_put(rh->jobj_segment_moved);
|
||||
rh->jobj_segment_moved = NULL;
|
||||
|
||||
free(rh->reenc_buffer);
|
||||
rh->reenc_buffer = NULL;
|
||||
|
||||
Reference in New Issue
Block a user