Fix memory leak in LOGD on iOS.