parttool: fix memory leak
Found by: Coverity scan. CID: 96652
This commit is contained in:
parent
1bff60e5aa
commit
5db2190f2c
1 changed files with 1 additions and 0 deletions
|
@ -283,6 +283,7 @@ grub_cmd_parttool (grub_command_t cmd __attribute__ ((unused)),
|
||||||
}
|
}
|
||||||
if (! cur)
|
if (! cur)
|
||||||
{
|
{
|
||||||
|
grub_free (parsed);
|
||||||
grub_device_close (dev);
|
grub_device_close (dev);
|
||||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("unknown argument `%s'"),
|
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("unknown argument `%s'"),
|
||||||
args[i]);
|
args[i]);
|
||||||
|
|
Loading…
Reference in a new issue