@@ -40,7 +40,7 @@ NAME=ser
# twice, trying to free a pointer alloc'ed with a different
# malloc etc.)
DEFS=-DTHREAD -DNOCR -DMACROEATER -DDNS_IP_HACK -DSHM_MEM \
- -DPKG_MALLOC #-DDBG_QM_MALLOC -DNO_DEBUG
+ -DPKG_MALLOC -DDBG_QM_MALLOC #-DNO_DEBUG
# -DUSE_SHM_MEM
#-DNO_DEBUG
#-DPKG_MALLOC
@@ -385,5 +385,6 @@ void sip_msg_free(struct sip_msg* msg)
if (msg->orig) sh_free( msg->orig );
if (msg->buf) sh_free( msg->buf );
+ sh_free(msg);
DBG("DEBUG: sip_msg_free : done\n");
}