diff options
| author | Assar Westerlund <assar@FreeBSD.org> | 2001-06-16 05:37:57 +0000 | 
|---|---|---|
| committer | Assar Westerlund <assar@FreeBSD.org> | 2001-06-16 05:37:57 +0000 | 
| commit | 207d92d04372e402208ee487f336ecd1cfa00cdc (patch) | |
| tree | c479adcc4560640387994dc0dba749ed8a0d5732 /lib/libc/stdio/vsnprintf.c | |
| parent | 80782fbf93166e7764d7308b55003ded1e2dc0c6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vsnprintf.c')
| -rw-r--r-- | lib/libc/stdio/vsnprintf.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c index b301b08f9fe5..3b762599933f 100644 --- a/lib/libc/stdio/vsnprintf.c +++ b/lib/libc/stdio/vsnprintf.c @@ -69,5 +69,7 @@ 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);  }  | 
