Fix two memory leaks in ArmCPUDetect.cpp

These char pointers weren't deleted before the function ended.
This commit is contained in:
Lioncash 2013-08-01 10:24:56 -04:00
parent 4e8958f42d
commit b14827da04

View File

@ -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;
}