ovs-vsctl: Fix memory leaks.
[openvswitch] / ovsdb / ovsdb-tool.c
index d506aae334dc56a11f5ca66cb22c78b83b318ebc..1f2a5ef7e14cf506e5a18f3b6072b2c644758c1b 100644 (file)
@@ -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,