From: Justin Pettit Date: Mon, 21 Feb 2011 23:33:19 +0000 (-0800) Subject: ovsdb: Fix double free in ovsdb_file_open_log(). X-Git-Tag: v1.1.0~258 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=822b56da1165488311e7a5460ed995cf0465b672;p=sliver-openvswitch.git ovsdb: Fix double free in ovsdb_file_open_log(). Coverity #11066 --- diff --git a/ovsdb/file.c b/ovsdb/file.c index a02b6510e..7061d6820 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -148,7 +148,6 @@ ovsdb_file_open_log(const char *file_name, enum ovsdb_log_open_mode open_mode, if (schemap) { error = ovsdb_schema_from_json(json, &schema); if (error) { - json_destroy(json); error = ovsdb_wrap_error(error, "failed to parse \"%s\" as ovsdb schema", file_name);