summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-25 01:47:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-25 01:47:55 -0400
commit6febfc3b4cd6b374479f34070da9a772f9ff5699 (patch)
tree941ff96e45bd412003be1dab05baf1f9404bf001 /ledger.cc
parentc6860970f27ed1f0d9b9543da46ffffa5c20e8f6 (diff)
downloadfork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.tar.gz
fork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.tar.bz2
fork-ledger-6febfc3b4cd6b374479f34070da9a772f9ff5699.zip
Bulk alloc bigints in the binary reader; this gains another 20%
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ledger.cc b/ledger.cc
index 91b1985c..66fbe9c7 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -83,6 +83,8 @@ journal_t::~journal_t()
if (! item_pool ||
((char *) *i) < item_pool || ((char *) *i) >= item_pool_end)
delete *i;
+ else
+ (*i)->~entry_t();
if (item_pool)
delete[] item_pool;