From: SourceForge.net <no...@so...> - 2003-12-28 18:58:31
|
Bugs item #866733, was opened at 2003-12-28 19:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=866733&group_id=599 Category: Run Time Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Maarten Brock (maartenbrock) Assigned to: Nobody/Anonymous (nobody) Summary: free() cannot handle generic pointer Initial Comment: The function free() is declared in malloc.h as extern void free (void xdata * p); While it is no problem for malloc() to return only pointers to xdata, it is not so with free. If I want to create portable code, I don't care about losing some bytes and performance, but I do care about having to resort to non-standard coding. I think free should accept generic pointers and check to see if it has allocated it through malloc or one of it's friends and then do it's job. Keep up the good work, Greets, Maarten ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=866733&group_id=599 |