fix memleak in crypt_resize()

This commit is contained in:
Ondrej Kozina
2017-08-25 12:44:45 +02:00
committed by Milan Broz
parent a0880b64f2
commit b27507790f

View File

@@ -1721,7 +1721,7 @@ out:
crypt_free_volume_key(dmd.u.crypt.vk);
free(CONST_CAST(void*)dmd.u.crypt.cipher);
}
free(CONST_CAST(void*)dmd.data_device);
device_free(dmd.data_device);
free(CONST_CAST(void*)dmd.uuid);
return r;