Skip to content

Commit

Permalink
Merge pull request #1427 from fengzeroz/main
Browse files Browse the repository at this point in the history
fix(driver): memory leak
  • Loading branch information
fengzeroz authored Jul 28, 2023
2 parents d70dae2 + e249a39 commit 00df5a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/adapter/driver/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,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);
}
}

Expand Down

0 comments on commit 00df5a5

Please sign in to comment.