From: Stefan Eissing Date: Mon, 1 Dec 2025 17:08:25 +0000 (+0100) Subject: memdebug: log socket close before closing X-Git-Tag: rc-8_18_0-1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc29590d6061931d054132cb701512a8b7305e7c;p=thirdparty%2Fcurl.git memdebug: log socket close before closing To not get a mixup in the memdebug log order. Closes #19793 --- diff --git a/lib/memdebug.c b/lib/memdebug.c index bbd7407c3c..7eae1708b7 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -468,9 +468,8 @@ void curl_dbg_mark_sclose(curl_socket_t sockfd, int line, const char *source) /* this is our own defined way to close sockets on *ALL* platforms */ int curl_dbg_sclose(curl_socket_t sockfd, int line, const char *source) { - int res = CURL_SCLOSE(sockfd); curl_dbg_mark_sclose(sockfd, line, source); - return res; + return CURL_SCLOSE(sockfd); } ALLOC_FUNC