call previous backend's free function in h_compile
This commit is contained in:
parent
1fe6b2ade9
commit
31c5189974
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ int h_compile(HParser* parser, HParserBackend backend, const void* params) {
|
|||
}
|
||||
|
||||
int h_compile__m(HAllocator* mm__, HParser* parser, HParserBackend backend, const void* params) {
|
||||
backends[backend]->free(parser);
|
||||
int ret = backends[backend]->compile(mm__, parser, params);
|
||||
if (!ret)
|
||||
parser->backend = backend;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue