[ovs-git] [openvswitch/ovs] f76def: ovsdb-server: Fix a reference count leak bug
noreply at github.com
Tue Mar 8 19:26:06 UTC 2016
Author: andy zhou <azhou at ovn.org>
Date: 2016-03-08 (Tue, 08 Mar 2016)
ovsdb-server: Fix a reference count leak bug
When destroying an ovsdb_jsonrpc_monitor, the jsonrpc monitor still
holds a reference count to the monitors 'changes' indexed with
'unflushed' transaction id. The bug is that the reference count was
not decremented as it should in the code path.
The bug caused 'changes' that have been flushed to all jsonrpc
clients to linger around unnecessarily, occupying increasingly
large amount of memory. See "Reported-at" URL for more details.
This bug is tricky to find since the memory is not leaked; they will
eventually be freed when monitors are destroyed.
Reported-by: Lei Huang <huang.f.lei at gmail.com>
Signed-off-by: Andy Zhou <azhou at ovn.org>
Tested-by: Han Zhou <zhouhan at gmail.com>
Acked-by: Han Zhou <zhouhan at gmail.com>
Acked-by: Liran Schour <lirans at il.ibm.com>
More information about the git