Memory clean up

Signed-off-by: Ozan Turgut <oturgut@turn.com>