X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=ovsdb%2Fovsdb.c;h=e95d23c415f608b88677064756c1c75096ec76e5;hb=a3326252a1ebee8c7f565fe60307b6a2af0ac073;hp=27254e633e2e38867212e2d26f45b25cbf13a342;hpb=b966380b45d66ae058c31fbcab67ccfcb8751005;p=openvswitch diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 27254e63..e95d23c4 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009 Nicira Networks +/* Copyright (c) 2009, 2010 Nicira Networks * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,8 +68,8 @@ ovsdb_schema_from_file(const char *file_name, struct ovsdb_schema **schemap) } error = ovsdb_schema_from_json(json, &schema); + json_destroy(json); if (error) { - json_destroy(json); return ovsdb_wrap_error(error, "failed to parse \"%s\" as ovsdb schema", file_name);