2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ovsdb-idl: Prevent segfault destroying an incomplete transaction.

This commit is contained in:
Ben Pfaff
2009-12-11 16:58:16 -08:00
parent 99b2042d3b
commit fbd8fd40a3

View File

@@ -805,6 +805,9 @@ ovsdb_idl_txn_set_dry_run(struct ovsdb_idl_txn *txn)
void
ovsdb_idl_txn_destroy(struct ovsdb_idl_txn *txn)
{
if (txn->status == TXN_INCOMPLETE) {
hmap_remove(&txn->idl->outstanding_txns, &txn->hmap_node);
}
ovsdb_idl_txn_abort(txn);
free(txn);
}