Author: spetreolle Date: Sun Jan 31 19:14:24 2016 New Revision: 70669
URL: http://svn.reactos.org/svn/reactos?rev=70669&view=rev Log: [OPENGL] Free the variable arguments in vsnprintf implementation. Patch by Victor Martinez. CORE-10629
Modified: trunk/reactos/dll/opengl/mesa/main/vsnprintf.c
Modified: trunk/reactos/dll/opengl/mesa/main/vsnprintf.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/mesa/main/vsnpri... ============================================================================== --- trunk/reactos/dll/opengl/mesa/main/vsnprintf.c [iso-8859-1] (original) +++ trunk/reactos/dll/opengl/mesa/main/vsnprintf.c [iso-8859-1] Sun Jan 31 19:14:24 2016 @@ -150,15 +150,16 @@ va_dcl #endif { + int nchar; va_list ap; #if __STDC__ va_start(ap, fmt); #else va_start(ap); #endif - - return (vsnprintf(str, n, fmt, ap)); + nchar = vsnprintf(str, n, fmt, ap) va_end(ap); + return (nchar); }