[qwaq] Plug a file handle leak

Forgot to call Qclose in load_file.
This commit is contained in:
Bill Currie 2022-02-14 14:41:14 +09:00
parent 4d491a444d
commit f3559cedb0

View file

@ -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;
}