X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconf.c;h=5231a9dfca25fc16c1a8fd3fbf63b9c0a8001081;hb=f2b21858a8e77663a02c2d586b21c5568fb435a0;hp=36c10acb45d3d025458de83fdc89bd52f8824d43;hpb=3ba46c8dbefbb1dfc6776aa8b0107956f038a870;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; }