MEDIUM: deinit: add cleanup for 51Degrees to deinit

This commit is contained in:
Thomas Holmes 2015-05-14 17:14:30 +01:00 committed by Willy Tarreau
parent 951d44d24d
commit 5ed33eed53

View File

@ -1231,6 +1231,7 @@ void deinit(void)
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 @@ void deinit(void)
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;