Hello,

In the mwi module probably there is no nedd to change the info take from database. In other words, there are no functions for apply_auth_nbody and agg_nbody so the body is not reallocated. I have taken this case in consideration- not requiring a registered free_body for it.
Please report if it works with mwi.

Thanks,

Anca Vamanu

Juha Heinanen wrote:

Anca-Maria Vamanu writes:

> Therefore, I added a 'free_body' field in the event structure to be > called when needed. I registered a function from presence_mwi modules > also - which is in fact a wrapper for pkg_free. I have not tested it so > please take a look at it and make the changes if needed.

anca,

presence_mwi module does not allocate memory for the body with
pkg_malloc or anything else.  if memory is allocated, it is done
somewhere else.  so i does not feel correct to call pkg_free by
presence_mwi module code.  so perhaps presence_mwi module free_body
function should not do anything?

-- juha





_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to