mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-06-02 19:27:51 -04:00
fix a bunch of memory leaks
This commit is contained in:
parent
a9d968c8dc
commit
eb59aa8bfa
|
@ -195,6 +195,7 @@ static char *get_mempaks_path(void)
|
|||
{
|
||||
return path;
|
||||
}
|
||||
free(path);
|
||||
|
||||
/* else use new path */
|
||||
return formatstr("%s%s.mpk", get_savesrampath(), get_save_filename());
|
||||
|
@ -211,6 +212,7 @@ static char *get_eeprom_path(void)
|
|||
{
|
||||
return path;
|
||||
}
|
||||
free(path);
|
||||
|
||||
/* else use new path */
|
||||
return formatstr("%s%s.eep", get_savesrampath(), get_save_filename());
|
||||
|
@ -227,6 +229,7 @@ static char *get_sram_path(void)
|
|||
{
|
||||
return path;
|
||||
}
|
||||
free(path);
|
||||
|
||||
/* else use new path */
|
||||
return formatstr("%s%s.sra", get_savesrampath(), get_save_filename());
|
||||
|
@ -243,6 +246,7 @@ static char *get_flashram_path(void)
|
|||
{
|
||||
return path;
|
||||
}
|
||||
free(path);
|
||||
|
||||
/* else use new path */
|
||||
return formatstr("%s%s.fla", get_savesrampath(), get_save_filename());
|
||||
|
|
Loading…
Reference in a new issue