[erlang-questions] Where is enif_keep_binary?

Max Lapshin max.lapshin@REDACTED
Mon Aug 22 09:55:13 CEST 2011


On Mon, Aug 22, 2011 at 11:45 AM, Anthony Ramine <nox@REDACTED> wrote:
> Hi,
>
> Are this binary big? If it is big enough, it won't be copied anyway and its refcounter will just be incremented.
>

enif_inspect_binary doesn't increment refcounter, so when thread
starts to work with it, this binary is already freed.



More information about the erlang-questions mailing list