Index: uspace/app/websrv/websrv.c
===================================================================
--- uspace/app/websrv/websrv.c	(revision 4a4cc150f1b4177264d79d70d62494b685bb24c2)
+++ uspace/app/websrv/websrv.c	(revision e1c6dde97b6781766a18cd5629671d9ae931bf7b)
@@ -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);
