mirror of https://github.com/mgba-emu/mgba.git
Util: Fix leak in SfoWrite
This commit is contained in:
parent
7727b6434d
commit
7b0e400710
|
@ -162,6 +162,7 @@ bool SfoWrite(struct Table* sfo, struct VFile* vf) {
|
|||
sortedEntries[i].size = 4;
|
||||
break;
|
||||
default:
|
||||
free(sortedEntries);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue