cvs: php4 /ext/curl curl.c

From: Date: Tue, 10 Jul 2001 20:09:57 +0000
Subject: cvs: php4 /ext/curl curl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6159@lists.php.net to get a copy of this message
sterling Tue Jul 10 16:09:57 2001 EDT Modified files: /php4/ext/curl curl.c Log: If the transfer fails, still free the buffer if it exists. Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.64 php4/ext/curl/curl.c:1.65 --- php4/ext/curl/curl.c:1.64 Mon Jul 2 08:08:21 2001 +++ php4/ext/curl/curl.c Tue Jul 10 16:09:56 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: curl.c,v 1.64 2001/07/02 12:08:21 sterling Exp $ */ +/* $Id: curl.c,v 1.65 2001/07/10 20:09:56 sterling Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -825,6 +825,8 @@ error = curl_easy_perform(ch->cp); if (error != CURLE_OK) { + if (ch->handlers->write->buf) + smart_str_free(&ch->handlers->write->buf); SAVE_CURL_ERROR(ch, error); RETURN_FALSE; }

« previous php.cvs (#6159) next »