ovsdb: Fix memory leak in transaction.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Jun 2011 20:50:18 +0000 (13:50 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Jun 2011 21:00:39 +0000 (14:00 -0700)
ovsdb/transaction.c

index 23d5eebe184259fda228ea1dd71b4b1558a3e4c6..08a8bc111eba4ef5311ec049548d82e52551266b 100644 (file)
@@ -992,6 +992,7 @@ ovsdb_txn_table_destroy(struct ovsdb_txn_table *txn_table)
     for (i = 0; i < txn_table->table->schema->n_indexes; i++) {
         hmap_destroy(&txn_table->txn_indexes[i]);
     }
     for (i = 0; i < txn_table->table->schema->n_indexes; i++) {
         hmap_destroy(&txn_table->txn_indexes[i]);
     }
+    free(txn_table->txn_indexes);
 
     txn_table->table->txn_table = NULL;
     hmap_destroy(&txn_table->txn_rows);
 
     txn_table->table->txn_table = NULL;
     hmap_destroy(&txn_table->txn_rows);