mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:33:34 +03:00
memory leak adjusts
This commit is contained in:
parent
111d1d09d3
commit
85174ed358
3 changed files with 7 additions and 3 deletions
|
|
@ -254,7 +254,8 @@ CURLcode http_done(struct connectdata *conn)
|
|||
*bytecount = http->readbytecount + http->writebytecount;
|
||||
}
|
||||
|
||||
/* TBD: the HTTP struct remains allocated here */
|
||||
free(http);
|
||||
data->proto.http=NULL; /* it is gone */
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue