Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lioncash committed Aug 6, 2013
1 parent dc23a07 commit 9d0554e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/Common/Src/ArmCPUDetect.cpp
Expand Up @@ -68,6 +68,9 @@ unsigned char GetCPUImplementer()
sscanf(implementer_string, "0x%02hhx", &implementer);
break;
}

free(implementer_string);

return implementer;
}

Expand All @@ -92,6 +95,9 @@ unsigned short GetCPUPart()
sscanf(part_string, "0x%03hx", &part);
break;
}

free(part_string);

return part;
}

Expand Down

0 comments on commit 9d0554e

Please sign in to comment.