cfree from newlib is linked instead of "cygheap" cfree

Egor Duda deo@logos-m.ru
Wed Sep 6 10:32:00 GMT 2000


Hi!

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

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
cfree-ambiguity.diff
cfree-ambiguity.ChangeLog

-------------- next part --------------
2000-09-06  Egor Duda  <deo@logos-m.ru>

	* cygheap.h: Rename cfree to cygheap_free to prevent
	collision with newlib's cfree.
	* cygheap.cc: Ditto.
	* child_info (child_info_spawn::~child_info_spawn): Ditto.
	* dcrt0.cc (dll_crt0_1): Ditto.
	* dtabe.cc (dtable::extend): Ditto.
	(dtable::dup_worker): Ditto.
	* environ.cc (environ_init): Ditto.
	* fhandler.cc (fhandler_base::set_name): Ditto.
	(fhandler_base::operator delete): Ditto.
	(fhandler_base::~fhandler_base): Ditto.
	* fhandler_raw.cc (fhandler_dev_raw::~fhandler_dev_raw): Ditto.
	(fhandler_dev_raw::ioctl): Ditto.
	* spawn.cc (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: <http://cygwin.com/pipermail/cygwin-patches/attachments/20000906/a812604c/attachment.bin>


More information about the Cygwin-patches mailing list