summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-26 19:47:33 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:45 -0400
commit46887bad42530c8c7d5cf7970e8c71aa4e9e9591 (patch)
tree9ce7c770dd5ec90def694f6c9307c57b3344d41e
parentf60717d3f4bd3f3c04e08edbe459495d00936d0c (diff)
downloadfork-ledger-46887bad42530c8c7d5cf7970e8c71aa4e9e9591.tar.gz
fork-ledger-46887bad42530c8c7d5cf7970e8c71aa4e9e9591.tar.bz2
fork-ledger-46887bad42530c8c7d5cf7970e8c71aa4e9e9591.zip
Fixed a possible memory corruption bug (rare).
-rw-r--r--binary.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/binary.cc b/binary.cc
index 387c0769..e425cded 100644
--- a/binary.cc
+++ b/binary.cc
@@ -456,7 +456,7 @@ account_t * read_binary_account(char *& data, journal_t * journal,
// account, throw away what we've learned about the recorded
// journal's own master account.
- if (master) {
+ if (master && acct != master) {
delete acct;
acct = master;
}