]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/http: fix memleak
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 5 Jan 2021 12:08:35 +0000 (13:08 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 7 Jan 2021 12:49:44 +0000 (13:49 +0100)
commit1d68f5ed1f5b0fe89ae8e1bcc7f84205843968d1
tree691b925fbf9c821e3de138599d1b4174217c6b0a
parent9eb67f5f241b7c4518b4c8ccce46a199fe0abf42
daemon/http: fix memleak

The http_data structure is allocated in http_write_pkt() and the last
callback that uses it is on_pkt_write(), so it should be responsible for
freeing the memory.

This used to leak a small amount of memory on every DoH response.
NEWS
daemon/http.c