1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 19:43:13 +02:00

Fix small memory leak when using JSON-RPC timers.

This commit is contained in:
Bram Matthys
2023-04-27 09:14:58 +02:00
parent 215869b421
commit af6d93f584
+1
View File
@@ -1252,6 +1252,7 @@ void free_outstanding_rrpc_list(ModData *m)
/** Remove timer from rpc_timer_list and free it */
void free_rpc_timer(RPCTimer *r)
{
safe_free(r->timer_id);
json_decref(r->request);
DelListItem(r, rpc_timer_list);
safe_free(r);