Formatting .c/.h files and fix memory leakage issues
Signed-off-by: John Chung <john.chung@arm.com>
Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
diff --git a/cper-parse.i b/cper-parse.i
index 7ba1da4..e783e7d 100644
--- a/cper-parse.i
+++ b/cper-parse.i
@@ -1,15 +1,17 @@
-%module cperparse
-%{
- #include "cper-parse.h"
- #include <json.h>
- #include <stdio.h>
-%}
+% module cperparse %
+ {
+#include "cper-parse.h"
+#include <json.h>
+#include <stdio.h>
+ %
+ }
-//Library function declarations for module export.
-json_object* cper_to_ir(FILE* cper_file);
-void ir_to_cper(json_object* ir, FILE* out);
+ //Library function declarations for module export.
+ json_object *
+ cper_to_ir(FILE *cper_file);
+void ir_to_cper(json_object *ir, FILE *out);
//JSON function symbol export.
const char *json_object_to_json_string(struct json_object *obj);
struct json_object *json_object_from_file(const char *filename);
-struct json_object *json_tokener_parse(const char *str);
\ No newline at end of file
+struct json_object *json_tokener_parse(const char *str);