mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 03:43:02 +00:00
fix double free edge case
This commit is contained in:
parent
62db503302
commit
a09c30c2e0
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue