cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-777425 ] illegal free; libcurl crash

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 25 Jul 2003 02:00:01 -0700

Bugs item #777425, was opened at 2003-07-25 02:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=777425&group_id=976

Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: illegal free; libcurl crash

Initial Comment:
libcurl crashes sometimes while freeing the http-

>send_buffer (in Curl_http_done). Setting http-

>send_buffer to NULL after freeing the buffer solves the

problem.

http.c:

CURLcode Curl_http_done(struct connectdata *conn)

{

  ...

  ...

  if(http->send_buffer) {

    send_buffer *buff = http->send_buffer;

    

    free(buff->buffer);

    free(buff);

--> http->send_buffer = NULL;

  }

  ...

  ...

}

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=777425&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-08-27