mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 16:45:06 -05:00
memdebug: bring back curl_mark_sclose
Used by debug builds with NSS.
Reverted from 05b100aee2
This commit is contained in:
parent
539d17b0de
commit
49d73d40f6
@ -426,7 +426,7 @@ curl_socket_t curl_accept(curl_socket_t s, void *saddr, void *saddrlen,
|
||||
}
|
||||
|
||||
/* separate function to allow libcurl to mark a "faked" close */
|
||||
static void mark_sclose(curl_socket_t sockfd, int line, const char *source)
|
||||
void curl_mark_sclose(curl_socket_t sockfd, int line, const char *source)
|
||||
{
|
||||
const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ?
|
||||
"FD %s:%d sclose(%d)\n":
|
||||
@ -442,7 +442,7 @@ static void mark_sclose(curl_socket_t sockfd, int line, const char *source)
|
||||
int curl_sclose(curl_socket_t sockfd, int line, const char *source)
|
||||
{
|
||||
int res = sclose(sockfd);
|
||||
mark_sclose(sockfd, line, source);
|
||||
curl_mark_sclose(sockfd, line, source);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user