From 90cc40715368ded012349403a77fa05a441a9dae Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 1 Feb 2010 14:33:29 -0800 Subject: [PATCH] ovsdb-tool: Fix minor memory leak in "create". This leak is not important, since "ovsdb-tool create" is a short-running command, but we might as well fix it. Found with valgrind. --- ovsdb/ovsdb-tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c index d506aae33..1f2a5ef7e 100644 --- a/ovsdb/ovsdb-tool.c +++ b/ovsdb/ovsdb-tool.c @@ -161,6 +161,7 @@ do_create(int argc UNUSED, char *argv[]) /* Read schema from file and convert to JSON. */ check_ovsdb_error(ovsdb_schema_from_file(schema_file_name, &schema)); json = ovsdb_schema_to_json(schema); + ovsdb_schema_destroy(schema); /* Create database file. */ check_ovsdb_error(ovsdb_log_open(db_file_name, O_RDWR | O_CREAT | O_EXCL, -- 2.43.0