]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
clear http->send_buffer when we have freed the memory it pointed to
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jul 2003 10:21:57 +0000 (10:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jul 2003 10:21:57 +0000 (10:21 +0000)
lib/http.c

index b361a204b3783be4e296fd5d8dabec517aa38b14..7f6752ec58f6c4d239b3a91a373d71c60152a8f0 100644 (file)
@@ -624,6 +624,7 @@ CURLcode Curl_http_done(struct connectdata *conn)
     
     free(buff->buffer);
     free(buff);
+    http->send_buffer = NULL; /* cleaer the pointer */
   }
 
   if(HTTPREQ_POST_FORM == data->set.httpreq) {