handledcgi: fclose allocated fdopen() FILE * - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
Log
Files
Refs
Tags
README
LICENSE
---
commit ddfe9f75756640b266be9e1bf80ce9581a405b6d
parent e48154791b3387b70536b62166fe8841df1b918f
Author: Hiltjo Posthuma 
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(-)
---
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;
         }
 }