mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[intl] LANGUAGE was allocated by malloc, so it must be released by free
This commit is contained in:
parent
0d5a600b33
commit
a9f09d131d
@ -231,7 +231,10 @@ init_gettext(struct module *module)
|
||||
static void
|
||||
done_gettext(struct module *module)
|
||||
{
|
||||
mem_free_set(&LANGUAGE, NULL);
|
||||
if (LANGUAGE) {
|
||||
free(LANGUAGE);
|
||||
LANGUAGE = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
struct module gettext_module = struct_module(
|
||||
|
@ -229,7 +229,10 @@ init_gettext(struct module *module)
|
||||
static void
|
||||
done_gettext(struct module *module)
|
||||
{
|
||||
mem_free_set(&LANGUAGE, NULL);
|
||||
if (LANGUAGE) {
|
||||
free(LANGUAGE);
|
||||
LANGUAGE = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
struct module gettext_module = struct_module(
|
||||
|
Loading…
x
Reference in New Issue
Block a user