]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: make add_handle free any multi_easy
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 Feb 2024 08:50:49 +0000 (09:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 27 Feb 2024 09:03:24 +0000 (10:03 +0100)
commit757dfdfb55a9dea43041b4ab4f1373d34c16dded
treed9df9bcb497a3fed0c22b0669157e72a1a99f098
parent2097a095c95e87d510ebeeaf211f893d5e688712
multi: make add_handle free any multi_easy

If the easy handle that is being added to a multi handle has previously
been used for curl_easy_perform(), there is a private multi handle here
that we can kill off. While it flushes some caches etc for the easy
handle would it be used for an easy interface transfer again after being
used in the multi stack, this cleanup simplifies behavior and uses less
memory.

Closes #12992
lib/easy.c
lib/multi.c