MEDIUM: deinit: add cleanup for 51Degrees to deinit
diff --git a/src/haproxy.c b/src/haproxy.c
index ecdf206..daf68d0 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -1231,6 +1231,7 @@
struct logsrv *log, *logb;
struct logformat_node *lf, *lfb;
struct bind_conf *bind_conf, *bind_back;
+ struct _51d_property_names *_51d_prop_name, *_51d_prop_nameb;
int i;
deinit_signals();
@@ -1486,6 +1487,15 @@
deinit_deviceatlas();
#endif
+#ifdef USE_51DEGREES
+ fiftyoneDegreesDestroy(&global._51d_data_set);
+ free(global._51d_data_file_path); global._51d_data_file_path = NULL;
+ list_for_each_entry_safe(_51d_prop_name, _51d_prop_nameb, &global._51d_property_names, list) {
+ LIST_DEL(&_51d_prop_name->list);
+ free(_51d_prop_name);
+ }
+#endif
+
free(global.log_send_hostname); global.log_send_hostname = NULL;
free(global.log_tag); global.log_tag = NULL;
free(global.chroot); global.chroot = NULL;