ovsdb: Fix double free in ovsdb_file_open_log().
authorJustin Pettit <jpettit@nicira.com>
Mon, 21 Feb 2011 23:33:19 +0000 (15:33 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 17:36:56 +0000 (09:36 -0800)
Coverity #11066

ovsdb/file.c

index a02b6510e5f2f3c826c9a6858ed9ad8dc788a1e8..7061d682055e71afe9a364393829f3ddb1359a70 100644 (file)
@@ -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);