Lines Matching refs:DNSServiceRefDeallocate
414 // Return a connected service ref (deallocate with DNSServiceRefDeallocate)
854 // The Callback can call DNSServiceRefDeallocate which in turn frees sdr and all the records.
866 // If DNSServiceRefDeallocate was called in the callback, morebytes will be zero. It means
868 // DNSServiceRefDeallocate on the first sdRef frees all other sdrefs.
981 // CAUTION: We have to handle the case where the client calls DNSServiceRefDeallocate from within the callback function.
982 // To do this we set moreptr to point to morebytes. If the client does call DNSServiceRefDeallocate(),
997 // (b) morebytes was 1 above, and we set sdRef->moreptr, but the operation was cancelled (with DNSServiceRefDeallocate()),
1007 void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef)
1009 if (!sdRef) { syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with NULL DNSServiceRef"); return; }
1013 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef %p %08X %08X", sdRef, sdRef->sockfd, sdRef->validator);
1047 // assume that DNSServiceRefDeallocate is called from the serial queue
1087 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1092 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1096 { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_ServiceNotRunning; }
1097 DNSServiceRefDeallocate(tmp);
1172 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1181 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1231 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1240 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1327 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1335 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1374 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1382 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1414 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1419 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1434 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1439 DNSServiceRefDeallocate(tmp);
1495 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1510 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1548 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1554 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1575 // WARNING: Don't touch op or sdr after this -- client may have called DNSServiceRefDeallocate
1598 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1601 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }
1851 if (!hdr) { DNSServiceRefDeallocate(tmp); return kDNSServiceErr_NoMemory; }
1862 DNSServiceRefDeallocate(tmp);
1926 if (!hdr) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; return kDNSServiceErr_NoMemory; }
1938 if (err) { DNSServiceRefDeallocate(*sdRef); *sdRef = NULL; }