make h_parse_result_free a no-op on NULL

This commit is contained in:
Sven M. Hallberg 2013-05-11 21:45:02 +02:00
parent 207fc6adef
commit a1105d413a

View file

@ -62,6 +62,7 @@ HParseResult* h_parse__m(HAllocator* mm__, const HParser* parser, const uint8_t*
}
void h_parse_result_free(HParseResult *result) {
if(result == NULL) return;
h_delete_arena(result->arena);
}