diff options
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index d84ecf541..a7c0a677a 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -616,12 +616,16 @@ CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...) { va_list arg; void *paramp; + CURLcode ret; struct SessionHandle *data = (struct SessionHandle *)curl; va_start(arg, info); paramp = va_arg(arg, void *); - return Curl_getinfo(data, info, paramp); + ret = Curl_getinfo(data, info, paramp); + + va_end(arg); + return ret; } /* |