ovsdb: Free "error" string in ovsdb_execute_insert().
authorJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 00:30:01 +0000 (16:30 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 17:40:00 +0000 (09:40 -0800)
Coverity #10723

ovsdb/execution.c

index a96abfcaf959d6f463fb0f8b7348228ef34dddf1..e2f10cbb268187e3c93f862d7ee3c7e1547e20a8 100644 (file)
@@ -292,6 +292,7 @@ ovsdb_execute_insert(struct ovsdb_execution *x, struct ovsdb_parser *parser,
 
         symbol = ovsdb_symbol_table_insert(x->symtab, json_string(uuid_name));
         if (symbol->used) {
+            ovsdb_error_destroy(error);
             return ovsdb_syntax_error(uuid_name, "duplicate uuid-name",
                                       "This \"uuid-name\" appeared on an "
                                       "earlier \"insert\" operation.");