memory leak adjusts

This commit is contained in:
Daniel Stenberg 2000-10-11 10:29:25 +00:00
parent 111d1d09d3
commit 85174ed358
3 changed files with 7 additions and 3 deletions

View file

@ -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;
}