summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/lib/vquic/quiche.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-19 16:50:05 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-19 16:50:05 (GMT)
commit7d0fa4a943f90567979b5d43c2249cc58ccca5d7 (patch)
treead4d0e4827e65d0986220c03fe7a0197d430dd6e /Utilities/cmcurl/lib/vquic/quiche.c
parentc156948327abea7fc569fd94efa474d682a1211f (diff)
parent7ceb56989f8ab3a4e1b1f2c48c9a0f382b85ec04 (diff)
downloadCMake-7d0fa4a943f90567979b5d43c2249cc58ccca5d7.zip
CMake-7d0fa4a943f90567979b5d43c2249cc58ccca5d7.tar.gz
CMake-7d0fa4a943f90567979b5d43c2249cc58ccca5d7.tar.bz2
Merge branch 'upstream-curl' into update-curl
* upstream-curl: curl 2020-08-19 (9d954e49)
Diffstat (limited to 'Utilities/cmcurl/lib/vquic/quiche.c')
-rw-r--r--Utilities/cmcurl/lib/vquic/quiche.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Utilities/cmcurl/lib/vquic/quiche.c b/Utilities/cmcurl/lib/vquic/quiche.c
index be6f15c..fd9cb8b 100644
--- a/Utilities/cmcurl/lib/vquic/quiche.c
+++ b/Utilities/cmcurl/lib/vquic/quiche.c
@@ -95,8 +95,14 @@ static CURLcode qs_disconnect(struct quicsocket *qs)
quiche_h3_config_free(qs->h3config);
if(qs->h3c)
quiche_h3_conn_free(qs->h3c);
- quiche_config_free(qs->cfg);
- quiche_conn_free(qs->conn);
+ if(qs->cfg) {
+ quiche_config_free(qs->cfg);
+ qs->cfg = NULL;
+ }
+ if(qs->conn) {
+ quiche_conn_free(qs->conn);
+ qs->conn = NULL;
+ }
return CURLE_OK;
}