commands/wildcard: Add missing free.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-24 21:29:19 +01:00
parent 37ba761b1c
commit 3b1b39c082

View file

@ -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;