mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +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)
|
while (token != NULL)
|
||||||
{
|
{
|
||||||
if (strstr(token, feature))
|
if (strstr(token, feature))
|
||||||
|
{
|
||||||
|
fclose(fp);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
token = strtok(NULL, " ");
|
token = strtok(NULL, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -254,6 +254,7 @@ int FileCopy(char* srcPath, char* destPath, char* fileName)
|
|||||||
if(fileId < 0)
|
if(fileId < 0)
|
||||||
{
|
{
|
||||||
printf("Fail opening %s\n",path);
|
printf("Fail opening %s\n",path);
|
||||||
|
free(data);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
sceIoRead(fileId, data, fileStat.st_size);
|
sceIoRead(fileId, data, fileStat.st_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user