disk/geli: Add missing free.
Found by: Coverity scan.
This commit is contained in:
parent
6f43e350ed
commit
7656b72b17
1 changed files with 4 additions and 1 deletions
|
@ -232,7 +232,10 @@ grub_util_get_geli_uuid (const char *dev)
|
||||||
|
|
||||||
err = make_uuid ((void *) &hdr, uuid);
|
err = make_uuid ((void *) &hdr, uuid);
|
||||||
if (err)
|
if (err)
|
||||||
return NULL;
|
{
|
||||||
|
grub_free (uuid);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue