Module: sip-router
Branch: 4.1
Commit: d921b452687a31ab49b7c5c4420c0c6134916140
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d921b45…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 15 17:50:52 2014 +0200
tm: free extra attributes stored in uac branch
- credits to Geoffrey M. for reporting and giving access for
troubleshooting
(cherry picked from commit c5e0bda5e20adeaa2a899fcc55ad12cf4678cf39)
---
modules/tm/h_table.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/tm/h_table.c b/modules/tm/h_table.c
index 26ca3e3..db93725 100644
--- a/modules/tm/h_table.c
+++ b/modules/tm/h_table.c
@@ -210,6 +210,15 @@ void free_cell( struct cell* dead_cell )
if (unlikely(dead_cell->uac[i].path.s)) {
shm_free_unsafe(dead_cell->uac[i].path.s);
}
+ if (unlikely(dead_cell->uac[i].instance.s)) {
+ shm_free_unsafe(dead_cell->uac[i].instance.s);
+ }
+ if (unlikely(dead_cell->uac[i].ruid.s)) {
+ shm_free_unsafe(dead_cell->uac[i].ruid.s);
+ }
+ if (unlikely(dead_cell->uac[i].location_ua.s)) {
+ shm_free_unsafe(dead_cell->uac[i].location_ua.s);
+ }
}
#ifdef WITH_AS_SUPPORT