[ovs-dev] [coverity 01/14] ovsdb: Fix double free in ovsdb_file_open_log().

Justin Pettit jpettit at nicira.com
Tue Feb 22 01:44:44 UTC 2011


Coverity #11066
---
 ovsdb/file.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/ovsdb/file.c b/ovsdb/file.c
index a02b651..7061d68 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);
-- 
1.7.1





More information about the dev mailing list