]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/term.c (read_terminal_list): Free in a right order.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 30 Sep 2010 19:04:09 +0000 (21:04 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 30 Sep 2010 19:04:09 +0000 (21:04 +0200)
ChangeLog
grub-core/normal/term.c

index b8967974174d100f69b93c388f929820304cff80..c223a869cf8c232a87da74ead5098fc916cffa67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/term.c (read_terminal_list): Free in a right order.
+
 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
index fe6240eb0a534954c48eda4b3ae402a2bcda17e9..00721c4473ee106c7884d98830f496869a26594f 100644 (file)
@@ -376,8 +376,8 @@ read_terminal_list (const char *prefix)
       if (! cur->modname)
        {
          grub_errno = GRUB_ERR_NONE;
-         grub_free (cur);
          grub_free (cur->name);
+         grub_free (cur);
          continue;
        }
       cur->next = *target;