From 7c88a5dc3ac1a034552bb94d42394bd325c1204e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Mar 2010 17:20:42 -0700 Subject: [PATCH] jsonrpc: Fix potential memory leak. This is unlikely to occur very often in practice, because s->stream usually gets stuffed into s->rpc before long, but it is still a good idea to fix it. --- lib/jsonrpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index 5c7dfca9e..5e054802f 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -684,6 +684,7 @@ jsonrpc_session_close(struct jsonrpc_session *s) if (s) { jsonrpc_close(s->rpc); reconnect_destroy(s->reconnect); + stream_close(s->stream); free(s); } } -- 2.43.0