0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 01:08:11 +00:00

Release label key if already in use ()

Release key_match if found
This commit is contained in:
Stelios Fragkakis 2024-02-05 10:23:36 +02:00 committed by GitHub
parent c45ca28d52
commit c5579a186f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1072,8 +1072,10 @@ static void add_label_pattern(struct label_pattern_list *lpl, char *label_key_va
lpl->buffer_list[index] = buffer_create(128, NULL);
lpl->key[index] = key_match;
} else
} else {
string_freez(key_match);
buffer_strncat(lpl->buffer_list[index], ",", 1);
}
buffer_strcat(lpl->buffer_list[index], label_key_value);
}