revert freeing of memory that gets allocated when str == NULL
(this will be fixed in a better way) PR: misc/26044
This commit is contained in:
parent
7ff2b28543
commit
4f98a66fa0
@ -87,7 +87,5 @@ snprintf(str, n, fmt, va_alist)
|
||||
if (on > 0)
|
||||
*f._p = '\0';
|
||||
va_end(ap);
|
||||
if (str == NULL)
|
||||
free(f._bf._base);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -77,7 +77,5 @@ sprintf(str, fmt, va_alist)
|
||||
ret = __vfprintf(&f, fmt, ap);
|
||||
va_end(ap);
|
||||
*f._p = 0;
|
||||
if (str == NULL)
|
||||
free(f._bf._base);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -69,7 +69,5 @@ vsnprintf(str, n, fmt, ap)
|
||||
ret = __vfprintf(&f, fmt, ap);
|
||||
if (on > 0)
|
||||
*f._p = '\0';
|
||||
if (str == NULL)
|
||||
free(f._bf._base);
|
||||
return (ret);
|
||||
}
|
||||
|
@ -61,7 +61,5 @@ vsprintf(str, fmt, ap)
|
||||
f._bf._size = f._w = INT_MAX;
|
||||
ret = __vfprintf(&f, fmt, ap);
|
||||
*f._p = 0;
|
||||
if (str == NULL)
|
||||
free(f._bf._base);
|
||||
return (ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user