mirror of
https://github.com/emqx/neuron.git
synced 2026-10-27 21:41:01 +08:00
memery leak
This commit is contained in:
@@ -772,7 +772,7 @@ void neu_driver_cache_update_change(neu_driver_cache_t *cache,
|
||||
}
|
||||
elem->value.type = value.type;
|
||||
|
||||
if (metas != NULL) {
|
||||
if (metas != NULL && n_meta != 0) {
|
||||
if (elem->metas != NULL) {
|
||||
free(elem->metas);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user