mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
do some freeing
This commit is contained in:
parent
c6d83ab9ff
commit
362ec2a23a
1 changed files with 5 additions and 1 deletions
|
@ -247,10 +247,14 @@ write_obj_file (const char *filename)
|
||||||
Qwrite (file, pr.strings, pr.strofs);
|
Qwrite (file, pr.strings, pr.strofs);
|
||||||
Qwrite (file, relocs, num_relocs * sizeof (qfo_reloc_t));
|
Qwrite (file, relocs, num_relocs * sizeof (qfo_reloc_t));
|
||||||
Qwrite (file, defs, num_defs * sizeof (qfo_def_t));
|
Qwrite (file, defs, num_defs * sizeof (qfo_def_t));
|
||||||
Qwrite (file, defs, num_functions * sizeof (qfo_function_t));
|
Qwrite (file, functions, num_functions * sizeof (qfo_function_t));
|
||||||
Qwrite (file, linenos, num_linenos * sizeof (pr_lineno_t));
|
Qwrite (file, linenos, num_linenos * sizeof (pr_lineno_t));
|
||||||
|
|
||||||
Qclose (file);
|
Qclose (file);
|
||||||
|
|
||||||
|
free (defs);
|
||||||
|
free (relocs);
|
||||||
|
free (functions);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue