Don't forget to va_end() the va_list we get from va_copy().
Submitted by: Sean McNeil <sean@mcneil.com> MFC after: 3 days
This commit is contained in:
parent
7fde238f04
commit
096ad1042a
@ -1233,6 +1233,7 @@ number: if ((dprec = prec) >= 0)
|
||||
done:
|
||||
FLUSH();
|
||||
error:
|
||||
va_end(orgap);
|
||||
#ifndef NO_FLOATING_POINT
|
||||
if (dtoaresult != NULL)
|
||||
freedtoa(dtoaresult);
|
||||
|
@ -1232,6 +1232,7 @@ number: if ((dprec = prec) >= 0)
|
||||
}
|
||||
done:
|
||||
error:
|
||||
va_end(orgap);
|
||||
if (convbuf != NULL)
|
||||
free(convbuf);
|
||||
if (__sferror(fp))
|
||||
|
Loading…
Reference in New Issue
Block a user