We were experiencing the issue with 1.5.4 released version, we upgraded from
svn and the issue still persists. I have a backtrace from both versions.
I agree it is a free of a null pointer, but the if(hf->parsed) should be the
test for NULL, and only execute code if not NULL. However this
Kamailio 1.5.4 crashes with the following backtrace.
(gdb) bt
#0 free_to_params (tb=0x79ffc0) at parser/parse_to.c:79
#1 free_to (tb=0x79ffc0) at parser/parse_to.c:88
#2 0x0047fe82 in clean_hdr_field (hf=0x2b32776ec6a0) at
parser/hf.c:187
#3 0x2b327492f525 in clean_msg_c