X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=snprintf%2Fvfprintf.c;fp=snprintf%2Fvfprintf.c;h=896a8840e5470321c1bc1ac00236dfd0cb0f699d;hb=e36f92a0ed915e5f4f6932d0bc9de89496a98b66;hp=cedd4fb7eb9e408c498b3ba901cd4180ef0d4569;hpb=b02f77a4dffe33623570933fc79b0f60eb1b6de2;p=lttng-ust.git diff --git a/snprintf/vfprintf.c b/snprintf/vfprintf.c index cedd4fb7..896a8840 100644 --- a/snprintf/vfprintf.c +++ b/snprintf/vfprintf.c @@ -934,7 +934,6 @@ number: if ((dprec = prec) >= 0) done: FLUSH(); error: - va_end(orgap); if (__sferror(fp)) ret = -1; goto finish; @@ -944,6 +943,7 @@ overflow: ret = -1; finish: + va_end(orgap); #ifdef FLOATING_POINT if (dtoaresult) __freedtoa(dtoaresult);