Module: sip-router
Branch: master
Commit: c50a8ba36aee8ae53d66a8128300085934d1a3f0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c50a8ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Dec 23 17:19:21 2012 +0100
p_usrloc: clean memory in case of malloc error
---
modules_k/p_usrloc/ucontact.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/p_usrloc/ucontact.c b/modules_k/p_usrloc/ucontact.c
index 1340221..10defc5 100644
--- a/modules_k/p_usrloc/ucontact.c
+++ b/modules_k/p_usrloc/ucontact.c
@@ -105,6 +105,8 @@ error:
if (c->user_agent.s) shm_free(c->user_agent.s);
if (c->callid.s) shm_free(c->callid.s);
if (c->c.s) shm_free(c->c.s);
+ if (c->ruid.s) shm_free(c->ruid.s);
+ if (c->instance.s) shm_free(c->instance.s);
shm_free(c);
return 0;
}