Formatting .c/.h files and fix memory leakage issues

Signed-off-by: John Chung <john.chung@arm.com>
Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
diff --git a/json-schema.h b/json-schema.h
index 02e45c6..59fb58b 100644
--- a/json-schema.h
+++ b/json-schema.h
@@ -3,12 +3,14 @@
 
 #include <json.h>
 
-#define JSON_SCHEMA_VERSION "https://json-schema.org/draft/2020-12/schema"
+#define JSON_SCHEMA_VERSION    "https://json-schema.org/draft/2020-12/schema"
 #define JSON_ERROR_MSG_MAX_LEN 512
 
-int validate_schema(json_object* schema, char* schema_directory, json_object* object, char* error_message);
-int validate_schema_from_file(const char* schema_file, json_object* object, char* error_message);
+int validate_schema(json_object *schema, char *schema_directory,
+		    json_object *object, char *error_message);
+int validate_schema_from_file(const char *schema_file, json_object *object,
+			      char *error_message);
 void validate_schema_debug_enable();
 void validate_schema_debug_disable();
 
-#endif
\ No newline at end of file
+#endif