curl_share_setopt: va_end was not called if conncache errors

CID 984459, detected by Coverity
This commit is contained in:
Daniel Stenberg 2017-11-10 14:59:19 +01:00
parent 2671f5f7cf
commit 3619ee5feb
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)
case CURL_LOCK_DATA_CONNECT: /* not supported (yet) */ case CURL_LOCK_DATA_CONNECT: /* not supported (yet) */
if(Curl_conncache_init(&share->conn_cache, 103)) if(Curl_conncache_init(&share->conn_cache, 103))
return CURLSHE_NOMEM; res = CURLSHE_NOMEM;
break; break;
default: default: