diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-08-06 18:17:54 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-08-06 18:17:54 -0400 |
| commit | 9d0554e4a68b7bfd59ed35107d067514638b93ed (patch) | |
| tree | 0334c216c98cddf768a0e6ba99beffb18b2ca94f /Source/Core/Common/Src/ArmCPUDetect.cpp | |
| parent | dc23a076bef52d23cd16352b9132a491cce96ea8 (diff) | |
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.
Diffstat (limited to 'Source/Core/Common/Src/ArmCPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/Src/ArmCPUDetect.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/ArmCPUDetect.cpp b/Source/Core/Common/Src/ArmCPUDetect.cpp index a04c88834f..ef49d6efb1 100644 --- a/Source/Core/Common/Src/ArmCPUDetect.cpp +++ b/Source/Core/Common/Src/ArmCPUDetect.cpp @@ -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; } |
