From cef276aafcc2cff1e70079aa2476e71a72ad79d3 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Mon, 25 Jul 2016 19:22:03 -0700 Subject: ovsdb: Properly close replication rpc connection This patch removes rpc related memory leak reported below. Reported-at: http://openvswitch.org/pipermail/dev/2016-July/076075.html Signed-off-by: Andy Zhou Acked-by: William Tu --- ovsdb/replication.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ovsdb/replication.c') diff --git a/ovsdb/replication.c b/ovsdb/replication.c index 52b708523..e12591703 100644 --- a/ovsdb/replication.c +++ b/ovsdb/replication.c @@ -391,6 +391,7 @@ check_for_notifications(struct shash *all_dbs) if (error == EAGAIN) { return; } else if (error) { + jsonrpc_close(rpc); rpc = open_jsonrpc(remote_ovsdb_server); if (!rpc) { /* Remote server went down. */ -- cgit v1.2.1