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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user