mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Fix some double frees.
This commit is contained in:
parent
8fd5be0ee0
commit
8f028b8a0d
2 changed files with 2 additions and 1 deletions
|
@ -166,6 +166,7 @@ bi_File_Open (progs_t *pr)
|
|||
if ((R_INT (pr) = QFile_AllocHandle (pr, file)))
|
||||
return;
|
||||
Qclose (file);
|
||||
return;
|
||||
error:
|
||||
free (path);
|
||||
R_INT (pr) = 0;
|
||||
|
|
|
@ -607,7 +607,7 @@ qfo_delete (qfo_t *qfo)
|
|||
} else {
|
||||
int i;
|
||||
for (i = 0; i < qfo->num_spaces; i++)
|
||||
free (qfo->spaces->d.data);
|
||||
free (qfo->spaces[i].d.data);
|
||||
free (qfo->relocs);
|
||||
free (qfo->defs);
|
||||
free (qfo->funcs);
|
||||
|
|
Loading…
Reference in a new issue