mDNSPosix.c: free very large struct on error path

This commit is contained in:
gutteridge 2023-08-15 00:02:16 +00:00
parent 1da411237a
commit 593e8d9786
1 changed files with 2 additions and 0 deletions

View File

@ -1266,6 +1266,8 @@ mDNSlocal mStatus WatchForInterfaceChange(mDNS *const m)
err = OpenIfNotifySocket(&pChgRec->NotifySD);
if (err == 0)
err = mDNSPosixAddFDToEventLoop(pChgRec->NotifySD, InterfaceChangeCallback, pChgRec);
if (err)
mDNSPlatformMemFree(pChgRec);
return err;
}