mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 09:09:49 +00:00
Fix two memory leaks in ArmCPUDetect.cpp
These char pointers weren't deleted before the function ended.
This commit is contained in:
parent
4e8958f42d
commit
b14827da04
@ -71,6 +71,9 @@ unsigned char GetCPUImplementer()
|
||||
sscanf(implementer_string, "0x%02hhx", &implementer);
|
||||
break;
|
||||
}
|
||||
|
||||
delete implementer_string;
|
||||
|
||||
return implementer;
|
||||
}
|
||||
|
||||
@ -95,6 +98,9 @@ unsigned short GetCPUPart()
|
||||
sscanf(part_string, "0x%03hx", &part);
|
||||
break;
|
||||
}
|
||||
|
||||
delete part_string;
|
||||
|
||||
return part;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user