mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
fix memory leak in romcmp
This commit is contained in:
parent
a0ae9b4bb6
commit
245584b6c2
@ -726,14 +726,22 @@ int CLIB_DECL main(int argc,char **argv)
|
||||
for (i = 0;i < found[0];i++)
|
||||
{
|
||||
if (files[0][i].listed == 0) printname(&files[0][i],0,0.0,0,0);
|
||||
freefile(&files[0][i]);
|
||||
}
|
||||
for (i = 0;i < found[1];i++)
|
||||
{
|
||||
if (files[1][i].listed == 0) printname(0,&files[1][i],0.0,0,0);
|
||||
freefile(&files[1][i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (i = 0;i < found[0];i++)
|
||||
{
|
||||
freefile(&files[0][i]);
|
||||
}
|
||||
for (i = 0;i < found[1];i++)
|
||||
{
|
||||
freefile(&files[1][i]);
|
||||
}
|
||||
}
|
||||
|
||||
zip_file_cache_clear();
|
||||
|
Loading…
Reference in New Issue
Block a user