Browse Source

mtree: set root tree pointer to null

- avoid double free if there is error at startup
Daniel-Constantin Mierla 15 years ago
parent
commit
fa898c615d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/mtree/mtree.c

+ 1 - 0
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;
 	}
 }