mDNSPosix.c: free very large struct on error path
This commit is contained in:
parent
1da411237a
commit
593e8d9786
|
@ -1266,6 +1266,8 @@ mDNSlocal mStatus WatchForInterfaceChange(mDNS *const m)
|
||||||
err = OpenIfNotifySocket(&pChgRec->NotifySD);
|
err = OpenIfNotifySocket(&pChgRec->NotifySD);
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
err = mDNSPosixAddFDToEventLoop(pChgRec->NotifySD, InterfaceChangeCallback, pChgRec);
|
err = mDNSPosixAddFDToEventLoop(pChgRec->NotifySD, InterfaceChangeCallback, pChgRec);
|
||||||
|
if (err)
|
||||||
|
mDNSPlatformMemFree(pChgRec);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue