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;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to