ovsdb: Fix double-free in ovsdb_jsonrpc_session_close().
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 20:27:53 +0000 (12:27 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 20:27:53 +0000 (12:27 -0800)
commit0b6a64ccceedba7c2b542217ec07891e0ab3f885
tree809a0ede2b84dfbeb59f18521c19e914c49d01d6
parent40fa9417d0bf4a49f63cc28a2591e6098bd4cf00
ovsdb: Fix double-free in ovsdb_jsonrpc_session_close().

ovsdb_session_destroy() was called twice but it should only be called once.

This double-free is unlikely to cause problems in practice because it only
triggers if there were ever more than two outstanding requests in the
session at a time (because the only data being freed is an hmap, which
does not allocate any heap memory unless the hmap has more than two
elements).

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ovsdb/jsonrpc-server.c