From: Ben Pfaff Date: Wed, 24 Mar 2010 00:20:42 +0000 (-0700) Subject: jsonrpc: Fix potential memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c88a5dc3ac1a034552bb94d42394bd325c1204e;p=openvswitch 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 5c7dfca9..5e054802 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); } }