From f3559cedb0a2081d7c4382ea682baf8482822eee Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 14 Feb 2022 14:41:14 +0900 Subject: [PATCH] [qwaq] Plug a file handle leak Forgot to call Qclose in load_file. --- ruamoko/qwaq/builtins/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ruamoko/qwaq/builtins/main.c b/ruamoko/qwaq/builtins/main.c index 4c51edae0..940e2072a 100644 --- a/ruamoko/qwaq/builtins/main.c +++ b/ruamoko/qwaq/builtins/main.c @@ -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; }