memory management

Arvind Sachdeva asachdeva at gmail.com
Mon Oct 10 10:13:09 EDT 2005


Hi,

I am writing client/server plugin for cyrus library. I allocated memory for
serverout string in mech_step function on server side. Where is this string
supposed to be freed ? According to the general convention if my plugin
allocates the memory it should be freeing it. But I dont understand in which
function should I free the memory.
Should I cache the pointer and free it on subsequent mech_step call, or
should I do something like cache all pointers and free them at the end.

Or am I missing a simple function that will be called back from the
application just for this purpose ?

-Arvind Sachdeva.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/cyrus-sasl/attachments/20051010/cdeab19c/attachment.html


More information about the Cyrus-sasl mailing list