mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Free two memory leaks in ArmCPUDetect.cpp
Char pointers aren't freed after use. Fixed this in PPSSPP a few days ago. Forgot to check here for the same thing until now.
This commit is contained in:
@ -68,6 +68,9 @@ unsigned char GetCPUImplementer()
|
||||
sscanf(implementer_string, "0x%02hhx", &implementer);
|
||||
break;
|
||||
}
|
||||
|
||||
free(implementer_string);
|
||||
|
||||
return implementer;
|
||||
}
|
||||
|
||||
@ -92,6 +95,9 @@ unsigned short GetCPUPart()
|
||||
sscanf(part_string, "0x%03hx", &part);
|
||||
break;
|
||||
}
|
||||
|
||||
free(part_string);
|
||||
|
||||
return part;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user