mirror of
https://github.com/emqx/neuron.git
synced 2026-10-27 21:41:01 +08:00
fix(driver): memory leak
This commit is contained in:
@@ -533,10 +533,9 @@ void neu_adapter_driver_write_tags(neu_adapter_driver_t *driver,
|
||||
|
||||
tv.value = cmd->tags[i].value.value;
|
||||
utarray_push_back(tags, &tv);
|
||||
} else {
|
||||
if (tag != NULL) {
|
||||
neu_tag_free(tag);
|
||||
}
|
||||
}
|
||||
if (tag != NULL) {
|
||||
neu_tag_free(tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user