DoH could leak memory in connect
Dump of all outstanding memory allocations:
ptr 0x8062dcad0 size 40 file ./../netmgr/http.c line 1019
ptr 0x8019fba00 size 8 file ./../netmgr/http.c line 1190
ptr 0x8019fe800 size 40 file ./../netmgr/http.c line 1019
ptr 0x8051bb380 size 32 file ./../netmgr/http.c line 1193
ptr 0x8052dce10 size 40 file ./../netmgr/http.c line 1019
ptr 0x8019fe9e8 size 37 file ./../netmgr/http.c line 1021
ptr 0x808858d20 size 32 file ./../netmgr/http.c line 1193
ptr 0x8052dce78 size 37 file ./../netmgr/http.c line 1021
ptr 0x8060b60c0 size 32 file ./../netmgr/http.c line 1193
ptr 0x8019fb820 size 8 file ./../netmgr/http.c line 1190
ptr 0x8019fb5b0 size 8 file ./../netmgr/http.c line 1190
ptr 0x8062dcb38 size 37 file ./../netmgr/http.c line 1021
This happens mainly on FreeBSD 12.2, but generally speaking, it looks like those are all data passed to async functions and the data are freed in the callbacks. But this is not the case here, FreeBSD has a different scheduling, so it might have revealed something not present on Linux.