Fixed a possible memory corruption bug (rare).
This commit is contained in:
parent
f60717d3f4
commit
46887bad42
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ account_t * read_binary_account(char *& data, journal_t * journal,
|
||||||
// account, throw away what we've learned about the recorded
|
// account, throw away what we've learned about the recorded
|
||||||
// journal's own master account.
|
// journal's own master account.
|
||||||
|
|
||||||
if (master) {
|
if (master && acct != master) {
|
||||||
delete acct;
|
delete acct;
|
||||||
acct = master;
|
acct = master;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue