src/server/daemon/request.c

changeset 145
1c93281ca4bf
parent 121
a881dc866e23
child 415
d938228c382e
--- a/src/server/daemon/request.c	Sat Dec 31 18:05:40 2016 +0100
+++ b/src/server/daemon/request.c	Fri Jan 13 09:53:55 2017 +0100
@@ -119,6 +119,7 @@
     // TODO: use pool
     struct stat *s = malloc(sizeof(struct stat));
     if(stat(path, s)) {
+        free(s);
         return NULL;
     }
     // TODO: statpath and staterror

mercurial