From: Ralph Dolmans Date: Wed, 24 Jun 2020 13:09:05 +0000 (+0200) Subject: dohclient memory leak fix X-Git-Tag: release-1.12.0rc1~22^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=941559c2b7409b3e01bf89c73cf0c8fcfb3fb50b;p=thirdparty%2Funbound.git dohclient memory leak fix --- diff --git a/testcode/dohclient.c b/testcode/dohclient.c index 10f365898..060d71ee4 100644 --- a/testcode/dohclient.c +++ b/testcode/dohclient.c @@ -227,6 +227,7 @@ make_query(char* qname, char* qtype, char* qclass) qinfo.local_alias = NULL; qinfo_query_encode(buf, &qinfo); /* flips buffer */ + free(qinfo.qname); sldns_buffer_write_u16_at(buf, 0, 0x0000); sldns_buffer_write_u16_at(buf, 2, BIT_RD); memset(&edns, 0, sizeof(edns)); @@ -401,6 +402,7 @@ http2_session_create() nghttp2_session_callbacks_set_on_header_callback(callbacks, http2_header_cb); nghttp2_session_client_new(&h2_session->session, callbacks, h2_session); + nghttp2_session_callbacks_del(callbacks); return h2_session; }