mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-11 03:13:06 +00:00
Fix memory leak
This commit is contained in:
parent
fcc83306f1
commit
9904bb58c4
1 changed files with 7 additions and 0 deletions
7
code.c
7
code.c
|
@ -167,4 +167,11 @@ void code_write() {
|
|||
fwrite(code_functions_data, 1, sizeof(prog_section_function) *code_functions_elements, fp);
|
||||
fwrite(code_globals_data, 1, sizeof(prog_section_var) *code_globals_elements, fp);
|
||||
#endif
|
||||
|
||||
free(code_statements_data);
|
||||
free(code_vars_data);
|
||||
free(code_fields_data);
|
||||
free(code_functions_data);
|
||||
free(code_globals_data);
|
||||
free(code_strings_data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue