fix double free edge case

This commit is contained in:
Felix Kratz 2022-10-26 18:58:44 +02:00
parent 62db503302
commit a09c30c2e0

View file

@ -49,7 +49,6 @@ void mach_receive_message(mach_port_t port, struct mach_buffer* buffer, bool tim
char* mach_send_message(mach_port_t port, char* message, uint32_t len, bool await_response) {
if (!message || !port) {
if (message) free(message);
return NULL;
}