Skip to content

Commit

Permalink
rls: Fixed memory leak in rls_handle_subscribe
Browse files Browse the repository at this point in the history
(cherry picked from commit 5692501)
  • Loading branch information
danpascu committed Jul 6, 2019
1 parent 52b4e78 commit 1fa5a06
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/rls/subscribe.c
Expand Up @@ -681,16 +681,11 @@ int rls_handle_subscribe(struct sip_msg* msg, char* s1, char* s2)

error:
if (rls_sigb.reply(msg, reply_code, &reply_str, 0) == -1)
{
LM_ERR("failed to send 400 reply\n");
return -1;
}


error_free:
if(subs.pres_uri.s)
pkg_free(subs.pres_uri.s);

if(subs.record_route.s)
pkg_free(subs.record_route.s);
if(doc)
Expand Down

0 comments on commit 1fa5a06

Please sign in to comment.