diff options
author | Michael Niewöhner <[email protected]> | 2019-06-19 20:53:37 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-06-19 11:53:37 -0700 |
commit | 0b755ec3d5ba531d2662da54fb9ac62627ce2c66 (patch) | |
tree | 0fb31ed4a3814b016d58eac4660c5c13f8fbc77e /cmd/zpool | |
parent | c308b1dd6388d591d9eefd3e753ad2b04a053c8b (diff) |
Fix memory leak in check_disk()
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Richard Elling <[email protected]>
Signed-off-by: Michael Niewöhner <[email protected]>
Closes #8897
Closes #8911
Diffstat (limited to 'cmd/zpool')
-rw-r--r-- | cmd/zpool/zpool_vdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c index 7ea9d7420..52c696816 100644 --- a/cmd/zpool/zpool_vdev.c +++ b/cmd/zpool/zpool_vdev.c @@ -433,6 +433,7 @@ check_disk(const char *path, blkid_cache cache, int force, char *value = blkid_get_tag_value(cache, "TYPE", path); (void) fprintf(stderr, gettext("%s is in use and contains " "a %s filesystem.\n"), path, value ? value : "unknown"); + free(value); return (-1); } |