]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
grub-core/lib/syslinux_parse.c: do not free array
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 30 Nov 2014 15:48:42 +0000 (18:48 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 30 Nov 2014 15:49:14 +0000 (18:49 +0300)
say->msg is inline array in a structure and should not be freed.
CID: 73610

ChangeLog
grub-core/lib/syslinux_parse.c

index b6220de2bb4775100622bf2033a6fe5a9bd3636b..21434fffbae34b10b4bbd1c9083ec5466fe30d3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-30  Andrei Borzenkov  <arvidjaar@gmail.com>
+
+       * grub-core/lib/syslinux_parse.c (free_menu): Do not free
+       inline array (CID 73610).
+
 2014-11-28  Andrei Borzenkov  <arvidjaar@gmail.com>
 
        * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
index 6bc504b7c5838f8c7daa0c392fac7d1f9d2f3c41..08e451cea9e89c1a7b55832355b1b7d6306cad65 100644 (file)
@@ -1351,7 +1351,6 @@ free_menu (struct syslinux_menu *menu)
   for (say = menu->say; say ; say = nsay)
     {
       nsay = say->next;
-      grub_free (say->msg);
       grub_free (say);
     }