* grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on

return.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-28 15:29:44 +02:00
parent 3393cf16d6
commit 9e0fa3f606
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
return.
2010-08-28 Vladimir Serbinenko <phcoder@gmail.com> 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer. * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.

View file

@ -585,6 +585,7 @@ grub_cmdline_get (const char *prompt)
break; break;
case '\e': case '\e':
grub_free (cl_terms);
return 0; return 0;
case '\b': case '\b':
@ -635,5 +636,6 @@ grub_cmdline_get (const char *prompt)
ret = grub_ucs4_to_utf8_alloc (buf + lpos, llen - lpos + 1); ret = grub_ucs4_to_utf8_alloc (buf + lpos, llen - lpos + 1);
grub_free (buf); grub_free (buf);
grub_free (cl_terms);
return ret; return ret;
} }