From 88b649747b690a899f9aae78de6f16690fac1a0c Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 17 Feb 2011 12:52:48 -0800 Subject: [PATCH] ovsdb-server: Fix memory leak. Reported-by: Peter Balland Bug #4698. --- ovsdb/ovsdb-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index 79fc8f93..fac78c80 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -171,7 +171,7 @@ main(int argc, char *argv[]) } ovsdb_jsonrpc_server_destroy(jsonrpc); ovsdb_destroy(db); - shash_destroy(&remotes); + shash_destroy_free_data(&remotes); unixctl_server_destroy(unixctl); if (run_process && process_exited(run_process)) { @@ -593,7 +593,7 @@ reconfigure_from_db(struct ovsdb_jsonrpc_server *jsonrpc, } } ovsdb_jsonrpc_server_set_remotes(jsonrpc, &resolved_remotes); - shash_destroy(&resolved_remotes); + shash_destroy_free_data(&resolved_remotes); #if HAVE_OPENSSL /* Configure SSL. */ -- 2.30.2