projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
317dadd
)
ovsdb: Fix memory leak in transaction.
author
Ben Pfaff
<blp@nicira.com>
Wed, 22 Jun 2011 20:50:18 +0000
(13:50 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 22 Jun 2011 21:00:39 +0000
(14:00 -0700)
ovsdb/transaction.c
patch
|
blob
|
history
diff --git
a/ovsdb/transaction.c
b/ovsdb/transaction.c
index 23d5eebe184259fda228ea1dd71b4b1558a3e4c6..08a8bc111eba4ef5311ec049548d82e52551266b 100644
(file)
--- a/
ovsdb/transaction.c
+++ b/
ovsdb/transaction.c
@@
-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);