Hello, all.
Please see line 204 and 209 on the 'grub-1.95/kern/parser.c'.
This code allocates memory. it stores arguments.
-begin----------------------------------------------------------------------
---------
/* Reserve memory for the return values. */
args = grub_malloc (bp - buffer);
if (! args)
return grub_errno;
grub_memcpy (args, buffer, bp - buffer);
*argv = grub_malloc (sizeof (char *) * (*argc + 1));
if (! *argv)
{
grub_free (args);
return grub_errno;
}
-end------------------------------------------------------------------------
---------
And this code is called from 'grub_normal_do_completion ()' and
'grub_enter_rescue_mode ()'. But I cannot find the codes release
its memory. Maybe leaks it.
--
Hitoshi Ozeki [EMAIL PROTECTED]
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel