[erlang-questions] enif_free and free in a NIF

Matthew Evans mattevans123@REDACTED
Thu Jul 3 21:45:14 CEST 2014


Hi Team,
We have a number of nifs that make use of enif_alloc and enif_free (as well as other calls such as erl_mk_tuple, erl_free_compound). The nifs also include a third party library that makes regular calls to malloc and free.
We have had a number of fairly rare core files (e.g. abort in free) from the third party library.
The question is is it safe to mix and match the Erlang memory allocation/deallocation NIF libraries with the standard Linux calls to free and malloc?
Thanks
Matt 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140703/b423977b/attachment.htm>


More information about the erlang-questions mailing list