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 23d5eeb..08a8bc1 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]);
     }
+    free(txn_table->txn_indexes);
 
     txn_table->table->txn_table = NULL;
     hmap_destroy(&txn_table->txn_rows);