mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
1850. [bug] Memory leak in lwres_getipnodebyaddr(). [RT #14591]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
1850. [bug] Memory leak in lwres_getipnodebyaddr(). [RT #14591]
|
||||||
|
|
||||||
1849. [doc] All forms of the man pages (docbook, man, html) should
|
1849. [doc] All forms of the man pages (docbook, man, html) should
|
||||||
have consistant copyright dates.
|
have consistant copyright dates.
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: getipnode.c,v 1.37 2004/03/05 05:12:45 marka Exp $ */
|
/* $Id: getipnode.c,v 1.38 2005/04/27 00:24:02 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -331,6 +331,8 @@ lwres_getipnodebyaddr(const void *src, size_t len, int af, int *error_num) {
|
|||||||
n = lwres_getnamebyaddr(lwrctx, LWRES_ADDRTYPE_V6, IN6ADDRSZ,
|
n = lwres_getnamebyaddr(lwrctx, LWRES_ADDRTYPE_V6, IN6ADDRSZ,
|
||||||
src, &by);
|
src, &by);
|
||||||
if (n != 0) {
|
if (n != 0) {
|
||||||
|
lwres_conf_clear(lwrctx);
|
||||||
|
lwres_context_destroy(&lwrctx);
|
||||||
*error_num = HOST_NOT_FOUND;
|
*error_num = HOST_NOT_FOUND;
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
@@ -338,6 +340,7 @@ lwres_getipnodebyaddr(const void *src, size_t len, int af, int *error_num) {
|
|||||||
lwres_gnbaresponse_free(lwrctx, &by);
|
lwres_gnbaresponse_free(lwrctx, &by);
|
||||||
if (he1 == NULL)
|
if (he1 == NULL)
|
||||||
*error_num = NO_RECOVERY;
|
*error_num = NO_RECOVERY;
|
||||||
|
lwres_conf_clear(lwrctx);
|
||||||
lwres_context_destroy(&lwrctx);
|
lwres_context_destroy(&lwrctx);
|
||||||
return (he1);
|
return (he1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user