Allocation in erl_interface

Corrado Santoro csanto@REDACTED
Thu Oct 20 10:28:31 CEST 2005

Dear all,

I'm using ports to perform a communication between an erlang program and 
a C one.

In the C program, I'm using erl_XXX function to extract data from 
incoming messages; I'm wondering if each call to a erl_XXX function 
(e.g. erl_element, erl_hd, erl_tail) perform a new allocation, so the 
return term must be then deallocated by means of erl_free_term.

Any suggestion?


Eng. Corrado Santoro, Ph.D.

University of Catania - Engineering Faculty
Department of Computer Science and
Telecommunications Engineering
Viale A. Doria, 6 - 95125 CATANIA (ITALY)

Tel: +39 095 7382380
      +39 095 7387035
      +39 095 7382365
      +39 095 7382364

VoIP: sip:7035@REDACTED

Fax: +39 095 7382397

EMail: csanto@REDACTED
Personal Home Page:

NUXI Home Page:

More information about the erlang-questions mailing list