fix leak in handle_propfind()

This commit is contained in:
Sergey Lyubka committed 2014-07-18 13:00:43 +01:00
1 parent b738fdbffa
commit 386d2e5cd4
1 file changed
+2
+2
View File
@@ -3337,7 +3337,9 @@ static void handle_propfind(struct connection *conn, const char *path,
struct dir_entry *de = &arr[i];
mg_url_encode(de->file_name, strlen(de->file_name), buf, sizeof(buf));
print_props(conn, buf, &de->st);
free(de->file_name);
}
free(arr);
}
ns_send(conn->ns_conn, footer, sizeof(footer) - 1);
}