Added dealloc to free repository object