Formatting .c/.h files and fix memory leakage issuesSigned-off-by: John Chung <john.chung@arm.com>Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
Fix several review comments.
Add initial version with header/secdesc parsing.