handledcgi: fclose allocated fdopen() FILE * - geomyidae - A small C-based gopherd.
(HTM) git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit ddfe9f75756640b266be9e1bf80ce9581a405b6d
(DIR) parent e48154791b3387b70536b62166fe8841df1b918f
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 25 Jun 2017 21:36:25 +0200
handledcgi: fclose allocated fdopen() FILE *
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M handlr.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/handlr.c b/handlr.c
@@ -255,6 +255,7 @@ handledcgi(int sock, char *file, char *port, char *base, char *args,
free(ln);
free(path);
wait(NULL);
+ fclose(fp);
break;
}
}