tree: Fix leaking struct nvme_ns.generic_name#548
Merged
igaw merged 1 commit intolinux-nvme:masterfrom Nov 30, 2022
Merged
Conversation
Contributor
tbzatek
commented
Nov 30, 2022
==306445== 96 bytes in 16 blocks are definitely lost in loss record 3,171 of 3,553 ==306445== at 0x484386F: malloc (vg_replace_malloc.c:393) ==306445== by 0x4FA2F6D: strdup (strdup.c:42) ==306445== by 0x7B9C477: nvme_ns_set_generic_name (tree.c:1802) ==306445== by 0x7B9C51B: nvme_ns_open (tree.c:1820) ==306445== by 0x7B9C606: __nvme_scan_namespace (tree.c:1853) ==306445== by 0x7B9CA0C: nvme_subsystem_scan_namespace (tree.c:1931) ==306445== by 0x7B98C81: nvme_subsystem_scan_namespaces (tree.c:496) ==306445== by 0x7B991BC: nvme_scan_subsystem (tree.c:597) ==306445== by 0x7B97DA1: nvme_scan_topology (tree.c:118) ==306445== by 0x7B97FA9: nvme_scan (tree.c:177)
Codecov Report
@@ Coverage Diff @@
## master #548 +/- ##
==========================================
- Coverage 24.30% 24.30% -0.01%
==========================================
Files 32 32
Lines 6134 6135 +1
Branches 1278 1278
==========================================
Hits 1491 1491
- Misses 4129 4130 +1
Partials 514 514
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.