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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=822b56da1165488311e7a5460ed995cf0465b672;p=openvswitch ovsdb: Fix double free in ovsdb_file_open_log(). Coverity #11066 --- diff --git a/ovsdb/file.c b/ovsdb/file.c index a02b6510..7061d682 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);