fixed a memory leak

Signed-off-by: Babu Shanmugam <anbu@enovance.com>