diff options
author | Marcus Boerger <helly@php.net> | 2002-06-23 22:10:30 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-06-23 22:10:30 +0000 |
commit | db39a2efa73fc3c5dd09a2f9ee818f4cff016419 (patch) | |
tree | 0d0e7d4c3b410e14972201684589a6791db82847 /main | |
parent | d3222bb5b77aa3ad1704598966b60072501915c8 (diff) | |
download | php-git-db39a2efa73fc3c5dd09a2f9ee818f4cff016419.tar.gz |
-freeing memory for pbuf=NULL
#should have been one commit but to many versions during tests
Diffstat (limited to 'main')
-rw-r--r-- | main/spprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/spprintf.c b/main/spprintf.c index 1177588e47..de7efc3978 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -632,6 +632,8 @@ PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap xbuf.buf[xbuf.size-1] = '\0'; if (pbuf) *pbuf = xbuf.buf; + else + efree(pbuf); return cc; } } |