cvs: php4(PHP_4_3) /ext/curl curl.c

From: Date: Wed, 27 Nov 2002 18:35:44 +0000
Subject: cvs: php4(PHP_4_3) /ext/curl curl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16709@lists.php.net to get a copy of this message
sterling Wed Nov 27 13:35:44 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/curl curl.c Log: fix memleak Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.124 php4/ext/curl/curl.c:1.124.2.1 --- php4/ext/curl/curl.c:1.124 Sun Nov 10 16:26:14 2002 +++ php4/ext/curl/curl.c Wed Nov 27 13:35:43 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: curl.c,v 1.124 2002/11/10 21:26:14 derick Exp $ */ +/* $Id: curl.c,v 1.124.2.1 2002/11/27 18:35:43 sterling Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1005,7 +1005,7 @@ if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) { if (ch->handlers->write->type != PHP_CURL_BINARY) smart_str_0(&ch->handlers->write->buf); - RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); + RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 0); } RETURN_TRUE;

« previous php.cvs (#16709) next »