added fixme line to improve it later
Costa Tsaousis (ktsaou) committed
Oct 15, 2017 at 23:26 UTC
5eb003bb64cea4b4df9109ecea716b0f72f7c270
1 file changed
+2
src/rrdvar.c
+2
@@ -134,6 +134,8 @@ RRDVAR *rrdvar_custom_host_variable_create(RRDHOST *host, const char *name) {
134
}
135
136
void rrdvar_free_remaining_variables(RRDHOST *host) {
137
+ // FIXME: this is not bullet proof - avl should support some means to destroy it
138
+ // with a callback for each item already in the index
139
while(host->variables_root_index.avl_tree.root) {
140
RRDVAR *rv = (RRDVAR *)host->variables_root_index.avl_tree.root;
141
rrdvar_free(host, &host->variables_root_index, rv);