On Tuesday, January 28, 2003, at 09:02 PM, Sisyphus wrote:
For dynamic memory allocation use New(), Newz(), or Newc() - and Safefree()I think that the reason those modules usually work fine is that under most circumstances, New() and the like are just #define'd straightforwardly in terms of malloc() and the like. But if someone builds with perl's malloc() instead of the system's, there may be problems.
instead of free().
Btw, there are many perfectly functional modules around with XS code
containing 'malloc' and 'free'. I'm not sure precisely under which
circumstances it becomes an issue.
-Ken