mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-13 21:16:08 +00:00
commands/wildcard: Add missing free.
Found by: Coverity scan.
This commit is contained in:
parent
37ba761b1c
commit
3b1b39c082
@ -245,7 +245,10 @@ match_devices_iter (const char *name, void *data)
|
||||
|
||||
t = grub_realloc (ctx->devs, sizeof (char*) * (ctx->ndev + 2));
|
||||
if (! t)
|
||||
return 1;
|
||||
{
|
||||
grub_free (buffer);
|
||||
return 1;
|
||||
}
|
||||
|
||||
ctx->devs = t;
|
||||
ctx->devs[ctx->ndev++] = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user