ovsdb-idl: Fix use-after-free error in ovsdb_idl_txn_delete().
authorBen Pfaff <blp@nicira.com>
Thu, 21 Jan 2010 18:51:37 +0000 (10:51 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Jan 2010 17:46:43 +0000 (09:46 -0800)
lib/ovsdb-idl.c

index 4f547330cf1464708cc232bb020a42602520cba8..7ba0fd68366b19969a220f0edde6302b9080e970 100644 (file)
@@ -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,