From 46887bad42530c8c7d5cf7970e8c71aa4e9e9591 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 26 Mar 2006 19:47:33 +0000 Subject: Fixed a possible memory corruption bug (rare). --- binary.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3