url: make Curl_close() NULLify the pointer too. 79/220579/2 accepted/tizen/base/20191223.060023 submit/tizen_base/20191220.141841
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Dec 2019 11:47:27 +0000 (17:17 +0530)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 20 Dec 2019 05:13:32 +0000 (14:13 +0900)
commit1930681eba52effb6534c52fdf0cd1f4c0f6554f
treea06c80a3208c66b3b080636e07e8f719a344bb82
parentbabba9d0ccc8cdeb53d063fd7c1d12ba84be040d
url: make Curl_close() NULLify the pointer too.

This is the common pattern used in the code and by a unified approach we
avoid mistakes.

Backported patch details:
https://github.com/curl/curl/commit/dcd7e37c3a0ce108635b89cacc1e3425e57bd3bc

Change-Id: I453175ca40d8e8dfa7611f026ec7513dc230d16f
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
lib/conncache.c
lib/doh.c
lib/easy.c
lib/http2.c
lib/url.c
lib/url.h
tests/unit/unit1620.c