[ovs-dev] [coverity 08/14] ovsdb: Free "error" string in ovsdb_execute_insert().

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


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

diff --git a/ovsdb/execution.c b/ovsdb/execution.c
index a96abfc..82c8752 100644
--- a/ovsdb/execution.c
+++ b/ovsdb/execution.c
@@ -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) {
+            free(error);
             return ovsdb_syntax_error(uuid_name, "duplicate uuid-name",
                                       "This \"uuid-name\" appeared on an "
                                       "earlier \"insert\" operation.");
-- 
1.7.1





More information about the dev mailing list