]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
normal: fix memory leak
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 20 Jun 2015 20:38:18 +0000 (23:38 +0300)
Found by: Coverity scan.
CID: 96685

grub-core/normal/cmdline.c

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