make h_parse_result_free a no-op on NULL
This commit is contained in:
parent
207fc6adef
commit
a1105d413a
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue