mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qwaq] Plug a file handle leak
Forgot to call Qclose in load_file.
This commit is contained in:
parent
4d491a444d
commit
f3559cedb0
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ load_file (progs_t *pr, const char *name, off_t *_size)
|
|||
sym = malloc (size + 1);
|
||||
sym[size] = 0;
|
||||
Qread (file, sym, size);
|
||||
Qclose (file);
|
||||
*_size = size;
|
||||
return sym;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue