hello everyone,
I'm using some kamailio configurations to perform I-CSCF and S-CSCF.
My configurations file let me register and unregister correctly.
When i try to perform an invite I've a memory leak as you can see from this log:

Jan 15 11:07:50 localhost kamailio[2873]: INFO: <script>: route: received packet
Jan 15 11:07:50 localhost kamailio[2873]: INFO: <script>: route: received register
Jan 15 11:07:50 localhost kamailio[2873]: INFO: ims_auth [authorize.c:663]: authenticate(): uri=sip:ims.test.net nonce=173692b1aea9182c2ac712f915f0144a response=f1efa37094e4492af1e292043c3d57ea qop=auth nc=00000001 cnonce=a2f5a827ac94467a39e81584c11e8284 hbody=
Jan 15 11:07:50 localhost kamailio[2873]: INFO: ims_auth [authorize.c:708]: authenticate(): UE said: f1efa37094e4492af1e292043c3d57ea and we  expect f1efa37094e4492af1e292043c3d57ea ha1 1c31125e2929b3fd6a609bd1a134a631 (REGISTER)
Jan 15 11:07:50 localhost kamailio[2873]: INFO: ims_registrar_scscf [cxdx_sar.c:79]: create_return_code(): created AVP successfully : [saa_return_code] - [-2]
Jan 15 11:07:50 localhost kamailio[2932]: INFO: ims_registrar_scscf [cxdx_avp.c:138]: cxdx_get_avp(): cxdx_get_experimental_result_code: Failed finding avp
Jan 15 11:07:50 localhost kamailio[2932]: INFO: ims_registrar_scscf [cxdx_sar.c:79]: create_return_code(): created AVP successfully : [saa_return_code] - [1]
Jan 15 11:07:50 localhost kamailio[2932]: WARNING: tm [t_lookup.c:1536]: t_unref(): WARNING: script writer didn't release transaction
Jan 15 11:08:05 localhost kamailio[2940]: ERROR: <script>: INVITE (sip:+393922568123@ims.test.net (10.139.140.249:14437) to sip:+39666555@ims.test.net, 0gQAAC8WAAACBAAALxYAAM3V1YJ1oc5VxmgXA6gfuMM+33iKMHHLO4FAjeWDRORBfoRu5acqCjeTKNa2pjdRdA--@10.139.140.249)
Jan 15 11:08:05 localhost kamailio[2940]: INFO: <script>: route: received packet
Jan 15 11:08:05 localhost kamailio[2940]: INFO: <script>: route: Mobile Originating Side
Jan 15 11:08:05 localhost kamailio[2940]: INFO: <script>: Routing Mobile Originating side
Jan 15 11:08:05 localhost kamailio[2940]: INFO: <script>: Adding angle brackets to P-Asserted-Identity
Jan 15 11:08:05 localhost kamailio[2940]: INFO: ims_isc [mod.c:236]: isc_match_filter(): Checking triggers
Jan 15 11:08:05 localhost kamailio[2940]: : <core> [mem/q_malloc.c:454]: qm_free(): BUG: qm_free: bad pointer 0x7f3dc03597a0 (out of memory block!) called from <core>: parser/parse_param.c: do_free_params(629) - aborting
Jan 15 11:08:05 localhost kamailio[2943]: : <core> [pass_fd.c:293]: receive_fd(): ERROR: receive_fd: EOF on 90
Jan 15 11:08:05 localhost kamailio[2863]: ALERT: <core> [main.c:775]: handle_sigs(): child process 2940 exited by a signal 6
Jan 15 11:08:05 localhost kamailio[2863]: ALERT: <core> [main.c:778]: handle_sigs(): core was generated
Jan 15 11:08:05 localhost kamailio[2863]: INFO: <core> [main.c:790]: handle_sigs(): INFO: terminating due to SIGCHLD
Jan 15 11:08:05 localhost kamailio[2939]: INFO: <core> [main.c:841]: sig_usr(): INFO: signal 15 received
Jan 15 11:08:05 localhost kamailio[2942]: INFO: <core> [main.c:841]: sig_usr(): INFO: signal 15 received

.....
 
Jan 15 11:08:05 localhost kamailio[2942]: INFO: <core> [main.c:841]: sig_usr(): INFO: signal 15 received 
Jan 15 11:08:05 localhost kamailio[2876]: INFO: <core> [main.c:841]: sig_usr(): INFO: signal 15 received
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [mod.c:251]: cdp_exit(): CDiameterPeer child stopping ...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:428]: diameter_peer_destroy(): destroy_diameter_peer(): Terminating all children...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2939] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2938] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2937] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2936] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2935] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2934] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2933] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:435]: diameter_peer_destroy(): destroy_diameter_peer(): Waiting for child [2932] to terminate...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [diameter_peer.c:447]: diameter_peer_destroy(): destroy_diameter_peer(): All processes terminated. Cleaning up.
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [worker.c:137]: worker_destroy(): Unlocking workers waiting on empty queue...
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [worker.c:140]: worker_destroy(): Unlocking workers waiting on full queue...
Jan 15 11:08:05 localhost kamailio[2863]: CRITICAL: cdp [diameter_peer.c:487]: diameter_peer_destroy(): destroy_diameter_peer(): Bye Bye from C Diameter Peer test
Jan 15 11:08:05 localhost kamailio[2863]: INFO: cdp [mod.c:253]: cdp_exit(): ... CDiameterPeer child stoped

after that the S-CSCF terminate.
it's unuseful to attach any wireshark dump because,as I told before, the Serving process terminates just after receiving the INVITE.
Instead I attach my configuration.

thanks in advance!!!

saluti

Gennaro Sarnataro