* fix memory bug for Tsafelogger