Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
1cb73c69
Commit
1cb73c69
authored
Apr 27, 2005
by
Mark Andrews
Browse files
1850. [bug] Memory leak in lwres_getipnodebyaddr(). [RT #14591]
parent
e2261f88
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
1cb73c69
1850. [bug] Memory leak in lwres_getipnodebyaddr(). [RT #14591]
1849. [doc] All forms of the man pages (docbook, man, html) should
have consistant copyright dates.
...
...
lib/lwres/getipnode.c
View file @
1cb73c69
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: getipnode.c,v 1.3
7
200
4
/0
3/05 05:12:45
marka Exp $ */
/* $Id: getipnode.c,v 1.3
8
200
5
/0
4/27 00:24:02
marka Exp $ */
#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
,
src
,
&
by
);
if
(
n
!=
0
)
{
lwres_conf_clear
(
lwrctx
);
lwres_context_destroy
(
&
lwrctx
);
*
error_num
=
HOST_NOT_FOUND
;
return
(
NULL
);
}
...
...
@@ -338,6 +340,7 @@ lwres_getipnodebyaddr(const void *src, size_t len, int af, int *error_num) {
lwres_gnbaresponse_free
(
lwrctx
,
&
by
);
if
(
he1
==
NULL
)
*
error_num
=
NO_RECOVERY
;
lwres_conf_clear
(
lwrctx
);
lwres_context_destroy
(
&
lwrctx
);
return
(
he1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment