mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-25 09:02:29 +02:00
dohclient memory leak fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user