mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Fixed two other memory leaks I missed.
This commit is contained in:
parent
1cc74aa6c0
commit
38caedadfa
@ -67,7 +67,10 @@ bool CheckCPUFeature(const char *feature)
|
||||
while (token != NULL)
|
||||
{
|
||||
if (strstr(token, feature))
|
||||
{
|
||||
fclose(fp);
|
||||
return true;
|
||||
}
|
||||
token = strtok(NULL, " ");
|
||||
}
|
||||
}
|
||||
|
@ -254,6 +254,7 @@ int FileCopy(char* srcPath, char* destPath, char* fileName)
|
||||
if(fileId < 0)
|
||||
{
|
||||
printf("Fail opening %s\n",path);
|
||||
free(data);
|
||||
return -1;
|
||||
}
|
||||
sceIoRead(fileId, data, fileStat.st_size);
|
||||
|
Loading…
Reference in New Issue
Block a user