Skip to content
Snippets Groups Projects
Commit a1105d41 authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

make h_parse_result_free a no-op on NULL

parent 207fc6ad
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ HParseResult* h_parse__m(HAllocator* mm__, const HParser* parser, const uint8_t* ...@@ -62,6 +62,7 @@ HParseResult* h_parse__m(HAllocator* mm__, const HParser* parser, const uint8_t*
} }
void h_parse_result_free(HParseResult *result) { void h_parse_result_free(HParseResult *result) {
if(result == NULL) return;
h_delete_arena(result->arena); h_delete_arena(result->arena);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment