summaryrefslogtreecommitdiffstats
path: root/vasprintf.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2012-04-13 23:30:38 +0000
committerobrien <obrien@FreeBSD.org>2012-04-13 23:30:38 +0000
commit15f98df7891f1853090ecb6c4a9cc734e671ef6b (patch)
tree76d27a13085cbcecae404c91dc1a6e03fc5c5d7b /vasprintf.c
parent75c49f9dd6a0ff710f7c791a485899c7a07af444 (diff)
downloadFreeBSD-src-15f98df7891f1853090ecb6c4a9cc734e671ef6b.zip
FreeBSD-src-15f98df7891f1853090ecb6c4a9cc734e671ef6b.tar.gz
Virgin import of Christos Zoulas's FILE 5.11.
Diffstat (limited to 'vasprintf.c')
-rw-r--r--vasprintf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vasprintf.c b/vasprintf.c
index 3e3af20..80bd58e 100644
--- a/vasprintf.c
+++ b/vasprintf.c
@@ -108,7 +108,7 @@ you use strange formats.
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: vasprintf.c,v 1.7 2009/02/03 20:27:52 christos Exp $")
+FILE_RCSID("@(#)$File: vasprintf.c,v 1.8 2011/12/08 12:38:24 rrt Exp $")
#endif /* lint */
#include <assert.h>
@@ -608,8 +608,7 @@ static int core(xprintf_struct *s)
return s->pseudo_len;
free_EOF:
- if (s->buffer_base != NULL)
- free(s->buffer_base);
+ free(s->buffer_base);
return EOF;
}
OpenPOWER on IntegriCloud