]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 5 Mar 2010 14:30:44 +0000 (15:30 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 5 Mar 2010 14:30:44 +0000 (15:30 +0100)
* gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.

ChangeLog
gettext/gettext.c

index db2c8855e5c61b3c0a7ecd4617905643aacdc227..df53d39adb98d5dce73fcf1eb01a1b84139094cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
+
 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
index 9a1756be703ea34f232c47af1bf39dbc60c66f4c..0aa8decbd3b2d16f172c32e41052ee6a19f63791 100644 (file)
@@ -279,13 +279,6 @@ grub_gettext_init_ext (const char *lang)
 
   /* mo_file e.g.: /boot/grub/locale/ca.mo   */
 
-  mo_file =
-    grub_malloc (grub_strlen (locale_dir) + grub_strlen ("/") +
-                grub_strlen (lang) + grub_strlen (".mo") + 1);
-
-  /* Warning: if changing some paths in the below line, change the grub_malloc
-     contents below.  */
-
   mo_file = grub_xasprintf ("%s/%s.mo", locale_dir, lang);
   if (!mo_file)
     return;