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.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
|
||||
|
||||
|
|
Loading…
Reference in a new issue