summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-06-23 22:10:30 +0000
committerMarcus Boerger <helly@php.net>2002-06-23 22:10:30 +0000
commitdb39a2efa73fc3c5dd09a2f9ee818f4cff016419 (patch)
tree0d0e7d4c3b410e14972201684589a6791db82847 /main
parentd3222bb5b77aa3ad1704598966b60072501915c8 (diff)
downloadphp-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.c2
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;
}
}