Commit 386d2e5c authored by Sergey Lyubka's avatar Sergey Lyubka

fix leak in handle_propfind()

parent b738fdbf
...@@ -3337,7 +3337,9 @@ static void handle_propfind(struct connection *conn, const char *path, ...@@ -3337,7 +3337,9 @@ static void handle_propfind(struct connection *conn, const char *path,
struct dir_entry *de = &arr[i]; struct dir_entry *de = &arr[i];
mg_url_encode(de->file_name, strlen(de->file_name), buf, sizeof(buf)); mg_url_encode(de->file_name, strlen(de->file_name), buf, sizeof(buf));
print_props(conn, buf, &de->st); print_props(conn, buf, &de->st);
free(de->file_name);
} }
free(arr);
} }
ns_send(conn->ns_conn, footer, sizeof(footer) - 1); ns_send(conn->ns_conn, footer, sizeof(footer) - 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment