From 842e599c5c0937d8a5b06eeb193c51a173a1bf14 Mon Sep 17 00:00:00 2001 From: Ivan Kluchnikov Date: Fri, 4 Nov 2016 16:56:36 +0300 Subject: reg-proxy: we shouldn't free call_id_num and seq_num_str, because they are used in osip_message and will be freed by osip_message_free function --- openbsc/src/reg-proxy/sip.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/reg-proxy/sip.c b/openbsc/src/reg-proxy/sip.c index a33e14157..023f2e37c 100644 --- a/openbsc/src/reg-proxy/sip.c +++ b/openbsc/src/reg-proxy/sip.c @@ -123,7 +123,6 @@ int tx_sip_register(struct sip_client *sip_client, osip_t *osip, char *imsi) sprintf(call_id_num, "%u", osip_build_random_number()); osip_call_id_set_number(call_id, call_id_num); reg_msg->call_id = call_id; - osip_free(call_id_num); if (osip_cseq_init(&cseq)) { OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_BUG,NULL,"seq init failed!\n")); @@ -136,7 +135,6 @@ int tx_sip_register(struct sip_client *sip_client, osip_t *osip, char *imsi) osip_cseq_set_number(cseq, seq_num_str); osip_cseq_set_method(cseq, osip_strdup("REGISTER")); reg_msg->cseq = cseq; - osip_free(seq_num_str); osip_message_set_max_forwards(reg_msg, "70"); -- cgit v1.2.3