memory leadks fix
memory leacks fix