mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
Memory leak: Dynamic allocation from msg_hash_get_help_us_enum was not freed.
This commit is contained in:
parent
e9e5868a8f
commit
b630e6b5f9
@ -46,7 +46,11 @@ int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
|
|||||||
"\n", STRLEN_CONST("\n"),
|
"\n", STRLEN_CONST("\n"),
|
||||||
"\n \n", STRLEN_CONST("\n \n"));
|
"\n \n", STRLEN_CONST("\n \n"));
|
||||||
|
|
||||||
|
if (temp)
|
||||||
|
{
|
||||||
strlcpy(s, temp, len);
|
strlcpy(s, temp, len);
|
||||||
|
free(temp);
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user