Originally posted by coder
View Post
An allocator is not just malloc. It includes free.
Think of C++: an allocator is a class. The class implements both new and delete operators. You don't fucking let the caller of the library to implement and call delete on YOUR class, WTF?? That's such a straw man argument from people who have nothing against Windows' superior DLL design.
Same thing in C. malloc/free are a PAIR and should always be used as SUCH. A malloc from library X must be considered distinct from library Y, and thus its free should also be distinct. Also from app Z.
Other post awaiting moderation because I destroyed some rookies with too many links I guess...
Comment