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.