From: Ben Pfaff Date: Wed, 24 Mar 2010 00:20:42 +0000 (-0700) Subject: jsonrpc: Fix potential memory leak. X-Git-Tag: v1.0.0~230 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7c88a5dc3ac1a034552bb94d42394bd325c1204e;p=sliver-openvswitch.git 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. --- 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); } }