normal: fix memory leak

Found by: Coverity scan.
CID: 96685
This commit is contained in:
Andrei Borzenkov 2015-06-20 23:38:18 +03:00
parent 20211c0077
commit 2a3ebf9428

View file

@ -389,6 +389,7 @@ grub_cmdline_get (const char *prompt_translated)
if (!unicode_msg) if (!unicode_msg)
{ {
grub_free (buf); grub_free (buf);
grub_free (cl_terms);
return 0; return 0;
} }
msg_len = grub_utf8_to_ucs4 (unicode_msg, msg_len - 1, msg_len = grub_utf8_to_ucs4 (unicode_msg, msg_len - 1,