memory leak fix

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>