delorie.com/archives/browse.cgi | search |
This is a multi-part message in MIME format. --------------040607030707090908020602 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Oops...the patch was garbled. Here it is again. --------------040607030707090908020602 Content-Type: text/plain; name="setup.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setup.patch" Index: geturl.cc =================================================================== RCS file: /cvs/src/src/winsup/cinstall/geturl.cc,v retrieving revision 2.10 diff -u -r2.10 geturl.cc --- geturl.cc 2001/11/02 00:50:19 2.10 +++ geturl.cc 2001/11/06 18:46:49 @@ -233,6 +233,8 @@ char *rv = (char *) malloc (total_bytes); if (NULL == rv) { + if (n) + delete n; log (LOG_BABBLE, "get_url_to_string(): malloc failed for rv!"); return 0; } @@ -246,6 +248,10 @@ bufs = tmp; } *rvp = 0; + + if (n) + delete n; + return rv; } @@ -300,6 +306,9 @@ total_download_bytes_sofar += total_bytes; fclose (f); + + if (n) + delete n; if (total_download_bytes > 0) { --------------040607030707090908020602--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |