protobuf: free memory used by scanner after parsing

Closes #17305
This commit is contained in:
Tomasz Moń 2021-03-26 15:47:28 +01:00
parent 98cf147b19
commit 525006f97b
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ int run_pbl_parser(pbl_descriptor_pool_t* pool)
ProtobufLangParser(state.pParser, 0, NULL, &state);
}
protobuf_lang_lex_destroy(scanner);
/* remove the parsed file from list */
pool->proto_files_to_be_parsed = it = g_slist_delete_link(pool->proto_files_to_be_parsed, it);
}