test-ovsdb: Don't leak return value from ovsdb_txn_commit().
authorJustin Pettit <jpettit@nicira.com>
Wed, 23 Feb 2011 02:02:20 +0000 (18:02 -0800)
committerJustin Pettit <jpettit@nicira.com>
Wed, 23 Feb 2011 19:08:20 +0000 (11:08 -0800)
Coverity #10727

tests/test-ovsdb.c

index aca68dcd359e53667242659ba841b4f104d83985..40d8a8d241f4c1ebee9228e21c4c133cec9a3a1d 100644 (file)
@@ -1344,7 +1344,7 @@ static struct ovsdb_table *do_transact_table;
 static void
 do_transact_commit(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
 {
-    ovsdb_txn_commit(do_transact_txn, false);
+    ovsdb_error_destroy(ovsdb_txn_commit(do_transact_txn, false));
     do_transact_txn = NULL;
 }