commands/wildcard: Add missing free.
Found by: Coverity scan.
This commit is contained in:
parent
37ba761b1c
commit
3b1b39c082
1 changed files with 4 additions and 1 deletions
|
@ -245,7 +245,10 @@ match_devices_iter (const char *name, void *data)
|
|||
|
||||
t = grub_realloc (ctx->devs, sizeof (char*) * (ctx->ndev + 2));
|
||||
if (! t)
|
||||
{
|
||||
grub_free (buffer);
|
||||
return 1;
|
||||
}
|
||||
|
||||
ctx->devs = t;
|
||||
ctx->devs[ctx->ndev++] = buffer;
|
||||
|
|
Loading…
Reference in a new issue