Added missing releasePage().
This commit is contained in:
parent
745975112f
commit
8485cc7fe1
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ compensated_function int TpageGet(int xid, int pageid, byte *memAddr) {
|
|||
q = loadPage(xid, pageid);
|
||||
memcpy(memAddr, q->memAddr, PAGE_SIZE);
|
||||
} end_ret(compensation_error());
|
||||
try_ret(compensation_error()) {
|
||||
releasePage(q);
|
||||
} end_ret(compensation_error());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue