From e9549e27efaf920e6f0b3d4c7a81129b705326e9 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sun, 21 Jan 2018 13:20:55 +0100 Subject: [PATCH] rls: removed local variable contact, unused inside rls_handle_subscribe() (cherry picked from commit 2aebb2bf1f3d71a0dc7eca847af2aa127ff54453) --- src/modules/rls/subscribe.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/modules/rls/subscribe.c b/src/modules/rls/subscribe.c index 9222dc72b87..a96d1674f73 100644 --- a/src/modules/rls/subscribe.c +++ b/src/modules/rls/subscribe.c @@ -479,7 +479,6 @@ int rls_handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_doma pres_ev_t* event = NULL; int err_ret = -1; int ret = to_presence_code; - str* contact = NULL; xmlDocPtr doc = NULL; xmlNodePtr service_node = NULL; unsigned int hash_code=0; @@ -802,13 +801,6 @@ int rls_handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_doma ret = 1; stop: forpresence: - if(contact!=NULL) - { - if(contact->s!=NULL) - pkg_free(contact->s); - pkg_free(contact); - } - if(subs.pres_uri.s!=NULL) pkg_free(subs.pres_uri.s); if(subs.record_route.s!=NULL) @@ -829,13 +821,6 @@ int rls_handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_doma error: LM_ERR("occurred in rls_handle_subscribe\n"); - - if(contact!=NULL) - { - if(contact->s!=NULL) - pkg_free(contact->s); - pkg_free(contact); - } if(subs.pres_uri.s!=NULL) pkg_free(subs.pres_uri.s);