From: Justin Pettit Date: Tue, 22 Feb 2011 00:30:01 +0000 (-0800) Subject: ovsdb: Free "error" string in ovsdb_execute_insert(). X-Git-Tag: v1.1.0~252 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=76f1c218bd84e44666c5a0ae54d543dbce42c376;p=cascardo%2Fovs.git ovsdb: Free "error" string in ovsdb_execute_insert(). Coverity #10723 --- diff --git a/ovsdb/execution.c b/ovsdb/execution.c index a96abfcaf..e2f10cbb2 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.");