This commit is contained in:
Sterling Hughes 2001-07-11 01:06:09 +00:00
parent 94e6db966b
commit dd3a7680ca

View file

@ -825,7 +825,7 @@ PHP_FUNCTION(curl_exec)
error = curl_easy_perform(ch->cp); error = curl_easy_perform(ch->cp);
if (error != CURLE_OK) { if (error != CURLE_OK) {
if (ch->handlers->write->buf) if (ch->handlers->write->buf.c)
smart_str_free(&ch->handlers->write->buf); smart_str_free(&ch->handlers->write->buf);
SAVE_CURL_ERROR(ch, error); SAVE_CURL_ERROR(ch, error);
RETURN_FALSE; RETURN_FALSE;