Are NIF resources meant to be destroyed immediately on GC?

Max Lapshin max.lapshin@REDACTED
Tue Nov 24 18:37:25 CET 2020

It is always a good idea to clear used resources explicitly if they
are expensive just like you close database connection.

Destructor will be called, maybe you just haven't released after
enif_make_resource? It is a very common caveat.

More information about the erlang-questions mailing list