Module: kamailio
Branch: master
Commit: 2aebb2bf1f3d71a0dc7eca847af2aa127ff54453
URL:
https://github.com/kamailio/kamailio/commit/2aebb2bf1f3d71a0dc7eca847af2aa1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-21T13:20:55+01:00
rls: removed local variable contact, unused inside rls_handle_subscribe()
---
Modified: src/modules/rls/subscribe.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2aebb2bf1f3d71a0dc7eca847af2aa1…
Patch:
https://github.com/kamailio/kamailio/commit/2aebb2bf1f3d71a0dc7eca847af2aa1…
---
diff --git a/src/modules/rls/subscribe.c b/src/modules/rls/subscribe.c
index 9222dc72b8..a96d1674f7 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);