Since it allows (small) memory leaks that interfere with torture tests
and regular memory-leak checks.
Reported-by: Dan Fandrich
Fixes #12834
Closes #12835
if(result && (use_proto == proto_ipfs || use_proto == proto_ipns))
break;
+#ifndef DEBUGBUILD
/* On most modern OSes, exiting works thoroughly,
we'll clean everything up via exit(), so don't bother with
slow cleanups. Crappy ones might need to skip this.
result = curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L);
if(result)
break;
+#endif
if(!config->tcp_nodelay)
my_setopt(curl, CURLOPT_TCP_NODELAY, 0L);