[sr-dev] git:master: tm: rest the pointer of hash table after free to avoid double free on false start

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 23 09:36:29 CET 2011


Module: sip-router
Branch: master
Commit: 7728464362af67eff4dc105f16a1d42c72407cca
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7728464362af67eff4dc105f16a1d42c72407cca

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Dec 23 09:34:00 2011 +0100

tm: rest the pointer of hash table after free to avoid double free on false start

---

 modules/tm/h_table.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/tm/h_table.c b/modules/tm/h_table.c
index 18b0857..663b0ea 100644
--- a/modules/tm/h_table.c
+++ b/modules/tm/h_table.c
@@ -444,6 +444,7 @@ void free_hash_table(  )
 			}
 		}
 		shm_free(_tm_table);
+		_tm_table = 0;
 	}
 }
 




More information about the sr-dev mailing list