mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
1331. [bug] lwres_getrrsetbyname leaked memory. [RT #3159]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
|||||||
|
1331. [bug] lwres_getrrsetbyname leaked memory. [RT #3159]
|
||||||
|
|
||||||
1330. [bug] 'rndc stop' failed to cause zones to be flushed
|
1330. [bug] 'rndc stop' failed to cause zones to be flushed
|
||||||
sometimes. [RT #3157]
|
sometimes. [RT #3157]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: getrrset.c,v 1.11 2001/07/10 18:25:44 gson Exp $ */
|
/* $Id: getrrset.c,v 1.12 2002/06/20 02:31:17 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -175,6 +175,7 @@ lwres_getrrsetbyname(const char *hostname, unsigned int rdclass,
|
|||||||
}
|
}
|
||||||
|
|
||||||
lwres_grbnresponse_free(lwrctx, &response);
|
lwres_grbnresponse_free(lwrctx, &response);
|
||||||
|
lwres_conf_clear(lwrctx);
|
||||||
lwres_context_destroy(&lwrctx);
|
lwres_context_destroy(&lwrctx);
|
||||||
*res = rrset;
|
*res = rrset;
|
||||||
return (ERRSET_SUCCESS);
|
return (ERRSET_SUCCESS);
|
||||||
@@ -183,10 +184,11 @@ lwres_getrrsetbyname(const char *hostname, unsigned int rdclass,
|
|||||||
lwres_freerrset(rrset);
|
lwres_freerrset(rrset);
|
||||||
if (response != NULL)
|
if (response != NULL)
|
||||||
lwres_grbnresponse_free(lwrctx, &response);
|
lwres_grbnresponse_free(lwrctx, &response);
|
||||||
if (lwrctx != NULL)
|
if (lwrctx != NULL) {
|
||||||
|
lwres_conf_clear(lwrctx);
|
||||||
lwres_context_destroy(&lwrctx);
|
lwres_context_destroy(&lwrctx);
|
||||||
|
}
|
||||||
return (result);
|
return (result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user