Check for res_ndestroy.
This commit is contained in:
parent
8af66a155c
commit
ec3e12b62a
18 changed files with 72 additions and 0 deletions
|
@ -21,6 +21,10 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <netinet/in.h>
|
||||
|
@ -239,7 +243,9 @@
|
|||
}
|
||||
} @finally {
|
||||
[self freeMemory: answer];
|
||||
#ifdef HAVE_RES_NDESTROY
|
||||
res_ndestroy(&resState);
|
||||
#endif
|
||||
}
|
||||
|
||||
[pool release];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue