cvs: php4 /main spprintf.c
| From: | Marcus B�rger | Date: | Sun, 23 Jun 2002 22:10:31 +0000 |
| Subject: | cvs: php4 /main spprintf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12470@lists.php.net to get a copy of this message | ||
helly Sun Jun 23 18:10:31 2002 EDT
Modified files:
/php4/main spprintf.c
Log:
-freeing memory for pbuf=NULL
#should have been one commit but to many versions during tests
Index: php4/main/spprintf.c
diff -u php4/main/spprintf.c:1.6 php4/main/spprintf.c:1.7
--- php4/main/spprintf.c:1.6 Sun Jun 23 18:06:52 2002
+++ php4/main/spprintf.c Sun Jun 23 18:10:30 2002
@@ -632,6 +632,8 @@
xbuf.buf[xbuf.size-1] = '\0';
if (pbuf)
*pbuf = xbuf.buf;
+ else
+ efree(pbuf);
return cc;
}
}