Index: uspace/app/websrv/websrv.c
===================================================================
--- uspace/app/websrv/websrv.c	(revision 4a4cc150f1b4177264d79d70d62494b685bb24c2)
+++ uspace/app/websrv/websrv.c	(revision cf155edf7bcc97ff2b67caffda8582d1534962e1)
@@ -39,4 +39,5 @@
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <fcntl.h>
 
@@ -171,6 +172,9 @@
 	if (fd < 0) {
 		printf("File '%s' not found.\n", fname);
+		free(fname);
 		return ENOENT;
 	}
+
+	free(fname);
 
 	rc = send_response(conn_sd, ok_msg);
