memory leak fix in grub_script_execute_cmdline

This commit is contained in:
BVK Chaitanya 2010-05-19 10:25:41 +05:30
parent dada803720
commit 0003008a58
3 changed files with 8 additions and 6 deletions

View file

@ -29,6 +29,7 @@ round_up_exp (unsigned v)
v |= v >> 4;
v |= v >> 8;
v |= v >> 16;
if (sizeof (v) > 4)
v |= v >> 32;
@ -41,7 +42,7 @@ round_up_exp (unsigned v)
void
grub_script_argv_free (struct grub_script_argv *argv)
{
int i;
unsigned i;
if (argv->args)
{