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:35:15 +0000 (12:35 -0800)
commitd7cda6eed76fdcc988ac494e6fd92b2f91aaa9fb
tree4b6d0b640d2e319e2db9e32e4b7531f268b80b89
parent5f60b7aabe8449dc08103575b076c8c8168464d3
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