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:
assar 2001-06-18 04:40:52 +00:00
parent 7ff2b28543
commit 4f98a66fa0
4 changed files with 0 additions and 8 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}