staging: tm6000: fix memory leak