diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2012-04-13 23:30:38 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2012-04-13 23:30:38 +0000 |
commit | b60a4870e8e65b50ccb2ec0bdbe880d2e94efa9e (patch) | |
tree | 76d27a13085cbcecae404c91dc1a6e03fc5c5d7b /vasprintf.c | |
parent | dacc26abaa8ab61168c45f0716bea144fa8afd14 (diff) |
Diffstat (limited to 'vasprintf.c')
-rw-r--r-- | vasprintf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vasprintf.c b/vasprintf.c index 3e3af2062a85..80bd58e71984 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; } |