mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
fix leak in handle_propfind()
This commit is contained in:
1 parent
b738fdbffa
commit
386d2e5cd4
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user