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 b361a20..7f6752e 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) {