Hi,
Does MEM_JOIN_FREE  is compiled by default in kamailio 4.X.X ?
thanks,
Uri