[erlang-questions] Am I leaking memory inside my linked in driver?

Zabrane Mickael zabrane3@REDACTED
Tue Feb 26 01:10:59 CET 2013


Hi guys,

If I keep calling ei_x_encode_atom(ei_x_buff* x, const char *p)) (http://erlang.org/doc/man/ei.html#ei_x_encode_atom)
again and again to create the same atom 'ok' ... am I leaking memory?

Yes, I can create the atom 'ok' since the beginning as a static variable and use its reference.
But want to be sure I'm leaking memory (or not) in the first case.

Regards,
Zabrane



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130226/79b19742/attachment.htm>


More information about the erlang-questions mailing list