Skip to content
Snippets Groups Projects
Commit 80c6c19c authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Double free fix

parent 2f34b05c
No related branches found
No related tags found
1 merge request!492Double free fix
Pipeline #50278 passed with stage
in 14 minutes and 41 seconds
......@@ -126,7 +126,7 @@ DAP_STATIC_INLINE void s_cli_cmd_schedule(dap_events_socket_t *a_es, void *a_arg
&& !s_allowed_cmd_check(l_arg->buf) ) {
dap_events_socket_write_f_unsafe(a_es, "HTTP/1.1 403 Forbidden\r\n");
a_es->flags |= DAP_SOCK_SIGNAL_CLOSE;
return DAP_DELETE(l_arg);
return;
}
l_arg->buf = strndup(l_arg->buf, l_arg->buf_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment