Fix memory leak

cheers

Change-Id: I029a68c528803489349a749bb5419e02c10a59fe