mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:03:52 +03:00
url: call protocol handler's disconnect in Curl_conn_free
For the case when the connection struct is all setup, the protocol handler allocates data in its setup_connection function, but the connection struct is discarded again before used further because a connection reuse is prefered. Then the handler's disconnect function was not previously called, which then would lead to a memory leak. I added test case 698 that reproduces the leak and the fix. Reported-by: Philippe Antoine Closes #16604
This commit is contained in:
parent
0d1e43af8d
commit
f4831daa9b
3 changed files with 63 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ test654 test655 test656 test658 test659 test660 test661 test662 test663 \
|
|||
test664 test665 test666 test667 test668 test669 test670 test671 test672 \
|
||||
test673 test674 test675 test676 test677 test678 test679 test680 test681 \
|
||||
test682 test683 test684 test685 test686 test687 test688 test689 test690 \
|
||||
test691 test692 test693 test694 test695 test696 test697 \
|
||||
test691 test692 test693 test694 test695 test696 test697 test698 \
|
||||
\
|
||||
test700 test701 test702 test703 test704 test705 test706 test707 test708 \
|
||||
test709 test710 test711 test712 test713 test714 test715 test716 test717 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue