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:
parent
dc23a076be
commit
9d0554e4a6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue