Update test case for memcheck.
Merge branch 'v2.2' of https://github.com/activesys/libcstl into v2.2

Fixup memleak of testcase.
Fixup memleak of testcase.