X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=snprintf%2Fvfprintf.c;h=565107b8bb3aeec26d8071759268ac0a2c7698ca;hb=a32694f47853412174b0efe3823fc7d0af6df121;hp=cedd4fb7eb9e408c498b3ba901cd4180ef0d4569;hpb=9501d22f55b3a23f382f631c99b2325d1419b5da;p=lttng-ust.git diff --git a/snprintf/vfprintf.c b/snprintf/vfprintf.c index cedd4fb7..565107b8 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); @@ -1350,7 +1350,7 @@ __grow_type_table(unsigned char **typetable, int *tablesize) return (0); } - + #ifdef FLOATING_POINT static int exponent(char *p0, int exp, int fmtch)