Added missing releasePage().

This commit is contained in:
Sears Russell 2006-07-25 01:03:57 +00:00
parent 745975112f
commit 8485cc7fe1

View file

@ -24,6 +24,9 @@ compensated_function int TpageGet(int xid, int pageid, byte *memAddr) {
q = loadPage(xid, pageid); q = loadPage(xid, pageid);
memcpy(memAddr, q->memAddr, PAGE_SIZE); memcpy(memAddr, q->memAddr, PAGE_SIZE);
} end_ret(compensation_error()); } end_ret(compensation_error());
try_ret(compensation_error()) {
releasePage(q);
} end_ret(compensation_error());
return 0; return 0;
} }