From: Ben Pfaff Date: Thu, 21 Jan 2010 18:51:37 +0000 (-0800) Subject: ovsdb-idl: Fix use-after-free error in ovsdb_idl_txn_delete(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f7adb70cb34bb568f9b6327d6adb945326e029;p=openvswitch ovsdb-idl: Fix use-after-free error in ovsdb_idl_txn_delete(). --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 4f547330..7ba0fd68 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -1229,6 +1229,7 @@ ovsdb_idl_txn_delete(struct ovsdb_idl_row *row) assert(!row->prereqs); hmap_remove(&row->table->idl->txn->txn_rows, &row->txn_node); free(row); + return; } if (hmap_node_is_null(&row->txn_node)) { hmap_insert(&row->table->idl->txn->txn_rows, &row->txn_node,