diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-10-28 09:28:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-10-29 22:52:57 +0100 |
commit | 49e649da84e4578b3ce5bac190f503a295a6678b (patch) | |
tree | 97213435d44104e4217159001944504ce518158d /lib/easy.c | |
parent | 4011802b35638e311e548e8893fa74373275145a (diff) | |
download | curl-bagder/curl_close-zero.tar.gz |
url: make Curl_close() NULLify the pointer toobagder/curl_close-zero
This is the common pattern used in the code and by a unified approach we
avoid mistakes.
Closes #4534
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index cbb65a5f6..001648d49 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -731,7 +731,7 @@ void curl_easy_cleanup(struct Curl_easy *data) return; sigpipe_ignore(data, &pipe_st); - Curl_close(data); + Curl_close(&data); sigpipe_restore(&pipe_st); } |