ovsdb: Fix memory leak in corner case in ovsdb_txn_commit_().
Reported-by: Yifeng Sun
@@ -814,6 +814,7 @@ ovsdb_txn_commit_(struct ovsdb_txn *txn, bool durable)
* was really a no-op. */
error = for_each_txn_row(txn, determine_changes);
if (error) {
+ ovsdb_txn_abort(txn);
return OVSDB_WRAP_BUG("can't happen", error);
}
if (ovs_list_is_empty(&txn->txn_tables)) {
