From 50a74be12542b84a3edcebc2603cabb7ae2daa44 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 24 Jul 2013 16:45:30 +0200 Subject: easy.c: curl_easy_getinfo() fix va_start/va_end matching --- lib/easy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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; } /* -- cgit v1.2.3