diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-10-28 20:30:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-10-28 20:30:23 +0000 |
commit | 6a79b0e8591ec94adcc49809bf1ab8cf66f1bb41 (patch) | |
tree | b1b8b301d39caaee4e22277b84fbc52545d03b5d /lib/nss.c | |
parent | 0d9f14f5c17e4a3888dedbc8d568a55979fc05f0 (diff) | |
download | curl-6a79b0e8591ec94adcc49809bf1ab8cf66f1bb41.tar.gz |
Since the NSS lib closes the socket the memory tracking system wrongly gets a
false positive on a leaked socket, so this introduces a way to tell the system
that the socket is indeed closed without explicitly closing it!
Diffstat (limited to 'lib/nss.c')
-rw-r--r-- | lib/nss.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -930,6 +930,7 @@ void Curl_nss_close(struct connectdata *conn, int sockindex) /* NSS closes the socket we previously handed to it, so we must mark it as closed to avoid double close */ + fake_sclose(conn->sock[sockindex]); conn->sock[sockindex] = CURL_SOCKET_BAD; if(connssl->client_nickname != NULL) { free(connssl->client_nickname); |