diff --git a/src/pipe.m b/src/pipe.m index 0b06fbd..d04fb98 100644 --- a/src/pipe.m +++ b/src/pipe.m @@ -165,7 +165,7 @@ XPC_CLASS_HEADER(pipe); mach_msg_return_t ret = MACH_MSG_SUCCESS; retry: - [message release]; + if (message != NULL) { [message release]; } message = dispatch_mach_msg_create(NULL, messageSize, DISPATCH_MACH_MSG_DESTRUCTOR_DEFAULT, &header); if (!message) { status = ENOMEM;