Module: sip-router
Branch: master
Commit: fa898c615d6a2ffb130563c52214ad06de2cd278
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fa898c6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 1 13:34:28 2010 +0200
mtree: set root tree pointer to null
- avoid double free if there is error at startup
---
modules/mtree/mtree.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/mtree/mtree.c b/modules/mtree/mtree.c
index a1626d2..f88c9e5 100644
--- a/modules/mtree/mtree.c
+++ b/modules/mtree/mtree.c
@@ -753,6 +753,7 @@ void mt_destroy_trees(void)
if (*_ptree!=NULL)
mt_free_tree(*_ptree);
shm_free(_ptree);
+ _ptree = NULL;
}
}