4844. [test] Address memory leaks in libatf-c. [RT #46798]