mirror of
https://github.com/netdata/netdata.git
synced 2025-04-13 01:08:11 +00:00
Release label key if already in use (#16916)
Release key_match if found
This commit is contained in:
parent
c45ca28d52
commit
c5579a186f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue