mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
bitlk: Allow running bitlk_metadata_free with NULL
This commit is contained in:
committed by
Milan Broz
parent
829a2379a1
commit
82f8fb653c
@@ -456,6 +456,9 @@ void BITLK_bitlk_vmk_free(struct bitlk_vmk *vmk)
|
||||
|
||||
void BITLK_bitlk_metadata_free(struct bitlk_metadata *metadata)
|
||||
{
|
||||
if (!metadata)
|
||||
return;
|
||||
|
||||
free(metadata->guid);
|
||||
if (metadata->description)
|
||||
free(metadata->description);
|
||||
|
||||
Reference in New Issue
Block a user