From: Justin Pettit Date: Tue, 22 Feb 2011 00:30:01 +0000 (-0800) Subject: ovsdb: Free "error" string in ovsdb_execute_insert(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f1c218bd84e44666c5a0ae54d543dbce42c376;p=openvswitch ovsdb: Free "error" string in ovsdb_execute_insert(). Coverity #10723 --- diff --git a/ovsdb/execution.c b/ovsdb/execution.c index a96abfca..e2f10cbb 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) { + ovsdb_error_destroy(error); return ovsdb_syntax_error(uuid_name, "duplicate uuid-name", "This \"uuid-name\" appeared on an " "earlier \"insert\" operation.");