cfree from newlib is linked instead of "cygheap" cfree

Egor Duda
Wed Sep 6 10:32:00 GMT 2000


  class  child_info  uses cfree in it's destructor, assuming this will
be  cfree  for  cygheap. Nevertheless, in compiler uses cfree
from  newlib,  when ciresrv variable in  spawn_guts  get  freed. this,
obviously, causes crash. how about this patch? 

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

-------------- next part --------------
2000-09-06  Egor Duda  <>

	* cygheap.h: Rename cfree to cygheap_free to prevent
	collision with newlib's cfree.
	* Ditto.
	* child_info (child_info_spawn::~child_info_spawn): Ditto.
	* (dll_crt0_1): Ditto.
	* (dtable::extend): Ditto.
	(dtable::dup_worker): Ditto.
	* (environ_init): Ditto.
	* (fhandler_base::set_name): Ditto.
	(fhandler_base::operator delete): Ditto.
	(fhandler_base::~fhandler_base): Ditto.
	* (fhandler_dev_raw::~fhandler_dev_raw): Ditto.
	(fhandler_dev_raw::ioctl): Ditto.
	* (struct av::~av): Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfree-ambiguity.diff
Type: text/x-diff
Size: 6418 bytes
Desc: not available
URL: <>

More information about the Cygwin-patches mailing list