mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 74374 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #10133) ................ r74374 | qwell | 2007-07-10 13:39:30 -0500 (Tue, 10 Jul 2007) | 13 lines Merged revisions 74373 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74373 | qwell | 2007-07-10 13:37:23 -0500 (Tue, 10 Jul 2007) | 5 lines Use res_ndestroy on systems that have it. Otherwise, use res_nclose. This prevents a memleak on NetBSD - and possibly others. Issue 10133, patch by me, reported and tested by scw ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -229,7 +229,11 @@ int ast_search_dns(void *context,
|
||||
ret = 1;
|
||||
}
|
||||
#ifdef HAVE_RES_NINIT
|
||||
#if HAVE_RES_NDESTROY
|
||||
res_ndestroy(&dnsstate);
|
||||
#else
|
||||
res_nclose(&dnsstate);
|
||||
#endif
|
||||
#else
|
||||
#ifndef __APPLE__
|
||||
res_close();
|
||||
|
Reference in New Issue
Block a user