2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>

* gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-05 15:30:44 +01:00
parent 3ab4bd77dd
commit 48a5a769a2
2 changed files with 4 additions and 7 deletions

View file

@ -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.

View 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;