Fix memory leak; initialize p.lockCount (for debugging)
This commit is contained in:
parent
51c5b60047
commit
33ca0d3254
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue