* grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
mo_file after freeing.
This commit is contained in:
parent
e6d983ba6d
commit
6e3c515d5b
2 changed files with 8 additions and 1 deletions
|
@ -287,8 +287,10 @@ grub_gettext_init_ext (const char *lang)
|
|||
/* Will try adding .gz as well. */
|
||||
if (fd_mo == NULL)
|
||||
{
|
||||
grub_free (mo_file);
|
||||
char *mo_file_old;
|
||||
mo_file_old = mo_file;
|
||||
mo_file = grub_xasprintf ("%s.gz", mo_file);
|
||||
grub_free (mo_file_old);
|
||||
if (!mo_file)
|
||||
return;
|
||||
fd_mo = grub_mofile_open (mo_file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue