X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fconf.c;h=5231a9dfca25fc16c1a8fd3fbf63b9c0a8001081;hb=e401f4fcb9bf48e4efd04f9671a7c6cf44ff0439;hp=36c10acb45d3d025458de83fdc89bd52f8824d43;hpb=0738678462979a3a3ee46cfc9c66d15002cafe72;p=meshlink diff --git a/src/conf.c b/src/conf.c index 36c10acb..5231a9df 100644 --- a/src/conf.c +++ b/src/conf.c @@ -51,7 +51,8 @@ void init_configuration(splay_tree_t **config_tree) { } void exit_configuration(splay_tree_t **config_tree) { - splay_delete_tree(*config_tree); + if(*config_tree) + splay_delete_tree(*config_tree); *config_tree = NULL; }