mirror of
https://github.com/corda/corda.git
synced 2025-01-21 12:05:08 +00:00
clear sites from dead value in removeBuddy
This commit is contained in:
parent
8819d01522
commit
a40ae85588
@ -2918,6 +2918,10 @@ removeBuddy(Context* c, Value* v)
|
||||
if (not live(next)) {
|
||||
clearSites(c, next);
|
||||
}
|
||||
|
||||
if (not live(v)) {
|
||||
clearSites(c, v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3788,6 +3792,8 @@ populateSiteTables(Context* c, Event* e)
|
||||
void
|
||||
setSites(Context* c, Event* e, Value* v, Site* s, unsigned size)
|
||||
{
|
||||
assert(c, live(v));
|
||||
|
||||
for (; s; s = s->next) {
|
||||
addSite(c, e->stackBefore, e->localsBefore, size, v, s->copy(c));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user