From b30b4527df7a94fad362140380dd3e570947eded Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Feb 2006 13:06:38 +0000 Subject: (read_binary_journal): Fixed a tiny memory leak when reading from a binary cache. --- binary.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'binary.cc') 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(data); accounts = accounts_next = new account_t *[a_count]; + delete journal->master; journal->master = read_binary_account(data, journal, master); if (read_binary_number(data)) journal->basket = accounts[read_binary_long(data) - 1]; -- cgit v1.2.3