--- 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