Skip to content

Commit

Permalink
AERealtimeWatchdog: don't warn on free(NULL)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Jun 14, 2016
1 parent 4e7105f commit d77c2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TheAmazingAudioEngine/Utilities/AERealtimeWatchdog.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ typedef ssize_t (*recvfrom_t)(int socket, void *restrict buffer, size_t length,
void free(void *p) {
static free_t funcptr = NULL;
if ( !funcptr ) funcptr = (free_t) dlsym(RTLD_NEXT, "free");
if ( AERealtimeWatchdogIsOnRealtimeThread() ) AERealtimeWatchdogUnsafeActivityWarning("free");
if ( p && AERealtimeWatchdogIsOnRealtimeThread() ) AERealtimeWatchdogUnsafeActivityWarning("free");
funcptr(p);
}

Expand Down

0 comments on commit d77c2fb

Please sign in to comment.