using master (with your latest commits). tried the referenced commit but still have memory leak for 1st request (suspend/continue). the xavp is being created after continue (registrar reply) , it seems receive_msg cleanup is not reached (or is early reached due to suspend) in this case ? and i agree this is not the recommended fix, its only hiding possible issues. also, i applied the patch only to reply.c in registrar and it fixes re-register.