[Concept] [PATCH 03/35] test: dm: Fix memory leaks in test drivers