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.pageid = 0;
p.freespace = 100; p.freespace = 100;
p.lockCount = 0;
(*pages[0]) = p; (*pages[0]) = p;
p.pageid = 1; p.pageid = 1;
@ -139,6 +139,10 @@ START_TEST(allocationPolicy_smokeTest)
allocationPolicyTransactionCompleted(ap, 2); allocationPolicyTransactionCompleted(ap, 2);
allocationPolicyDeinit(ap);
free(pages);
} END_TEST } END_TEST