* grub-core/normal/completion.c (grub_normal_do_completion): Free argv
on failure.
This commit is contained in:
parent
9e0fa3f606
commit
46422ebf1a
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/normal/completion.c (grub_normal_do_completion): Free argv
|
||||||
|
on failure.
|
||||||
|
|
||||||
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
|
* grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
|
||||||
|
|
|
@ -499,7 +499,10 @@ grub_normal_do_completion (char *buf, int *restore,
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (argc != 0)
|
if (argc != 0)
|
||||||
grub_free (argv[0]);
|
{
|
||||||
|
grub_free (argv);
|
||||||
|
grub_free (argv[0]);
|
||||||
|
}
|
||||||
grub_free (match);
|
grub_free (match);
|
||||||
grub_errno = GRUB_ERR_NONE;
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue