diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-11-14 02:06:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 02:06:51 +0200 |
commit | f2e157e690e34413325c2781d91a894ac39552d3 (patch) | |
tree | 73db30066490830efb0fe78ff9432877e276cc84 /database | |
parent | cbebc18ca3e52ec5ab41272ef85a5fd45d8d3b10 (diff) |
added debug info on left-over query targets (#13990)
Diffstat (limited to 'database')
-rw-r--r-- | database/rrdcontext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/database/rrdcontext.c b/database/rrdcontext.c index d39585cdc4..4e3751e92b 100644 --- a/database/rrdcontext.c +++ b/database/rrdcontext.c @@ -2276,6 +2276,7 @@ typedef struct query_target_locals { static __thread QUERY_TARGET thread_query_target = {}; void query_target_release(QUERY_TARGET *qt) { if(unlikely(!qt)) return; + if(unlikely(!qt->used)) return; simple_pattern_free(qt->hosts.pattern); qt->hosts.pattern = NULL; |