2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
* gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
This commit is contained in:
parent
3ab4bd77dd
commit
48a5a769a2
2 changed files with 4 additions and 7 deletions
|
@ -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>
|
2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
|
* disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
|
||||||
|
|
|
@ -279,13 +279,6 @@ grub_gettext_init_ext (const char *lang)
|
||||||
|
|
||||||
/* mo_file e.g.: /boot/grub/locale/ca.mo */
|
/* 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);
|
mo_file = grub_xasprintf ("%s/%s.mo", locale_dir, lang);
|
||||||
if (!mo_file)
|
if (!mo_file)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue