mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
* gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
This commit is contained in:
1 parent
3ab4bd77dd
commit
48a5a769a2
2 files changed
+4
-7
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user