read_buf's may remain on canceled tcp requests

This commit is contained in:
Willem Toorop 2017-12-21 14:53:54 +01:00
parent efb0539c15
commit 0ef910b9ee
1 changed files with 2 additions and 0 deletions

View File

@ -728,6 +728,8 @@ _getdns_upstreams_dereference(getdns_upstreams *upstreams)
{
_getdns_closesocket(upstream->fd);
}
if (upstream->tcp.read_buf)
GETDNS_FREE(upstreams->mf, upstream->tcp.read_buf);
while (pin) {
sha256_pin_t *nextpin = pin->next;
GETDNS_FREE(upstreams->mf, pin);