summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-28 13:06:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:43 -0400
commitb30b4527df7a94fad362140380dd3e570947eded (patch)
tree1a5fe8700960e421e6589e23be6783ea04088fe9 /binary.cc
parent6d529efa63f5f2020b126c8476fe0ea03516869d (diff)
downloadfork-ledger-b30b4527df7a94fad362140380dd3e570947eded.tar.gz
fork-ledger-b30b4527df7a94fad362140380dd3e570947eded.tar.bz2
fork-ledger-b30b4527df7a94fad362140380dd3e570947eded.zip
(read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/binary.cc b/binary.cc
index 24613da9..84885335 100644
--- a/binary.cc
+++ b/binary.cc
@@ -537,6 +537,7 @@ unsigned int read_binary_journal(std::istream& in,
account_t::ident_t a_count = read_binary_long<account_t::ident_t>(data);
accounts = accounts_next = new account_t *[a_count];
+ delete journal->master;
journal->master = read_binary_account(data, journal, master);
if (read_binary_number<bool>(data))
journal->basket = accounts[read_binary_long<account_t::ident_t>(data) - 1];