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 a96abfc..e2f10cb 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.");