Fix memory leak; initialize p.lockCount (for debugging)

This commit is contained in:
Sears Russell 2006-08-11 00:02:16 +00:00
parent 51c5b60047
commit 33ca0d3254

View file

@ -80,7 +80,7 @@ START_TEST(allocationPolicy_smokeTest)
p.pageid = 0;
p.freespace = 100;
p.lockCount = 0;
(*pages[0]) = p;
p.pageid = 1;
@ -138,7 +138,11 @@ START_TEST(allocationPolicy_smokeTest)
allocationPolicyUpdateFreespaceLockedPage(ap, 2, p8, 0);
allocationPolicyTransactionCompleted(ap, 2);
allocationPolicyDeinit(ap);
free(pages);
} END_TEST