Skip to content
Snippets Groups Projects
Commit 8bccd141 authored by armatusmiles's avatar armatusmiles
Browse files

[*] Fix memory leak in read_write_cb

parent 64d58d03
No related branches found
No related tags found
No related merge requests found
...@@ -236,10 +236,9 @@ static void read_write_cb (struct ev_loop* loop, struct ev_io* watcher, int reve ...@@ -236,10 +236,9 @@ static void read_write_cb (struct ev_loop* loop, struct ev_io* watcher, int reve
log_it(L_INFO, "Close Socket %d", watcher->fd); log_it(L_INFO, "Close Socket %d", watcher->fd);
atomic_fetch_sub(&thread_inform[DAP_EV_DATA(watcher)->thread_number].count_open_connections, 1); atomic_fetch_sub(&thread_inform[DAP_EV_DATA(watcher)->thread_number].count_open_connections, 1);
ev_io_stop(listener_clients_loops[DAP_EV_DATA(watcher)->thread_number], watcher); ev_io_stop(listener_clients_loops[DAP_EV_DATA(watcher)->thread_number], watcher);
dap_client_remove(dap_cur, _current_run_server); dap_client_remove(dap_cur, _current_run_server);
free(watcher); free(watcher->data); free(watcher);
return; return;
} }
} }
......
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