Skip to content

Commit

Permalink
Fix memory leak in check_disk()
Browse files Browse the repository at this point in the history
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes openzfs#8897
Closes openzfs#8911
  • Loading branch information
c0d3z3r0 authored and tonyhutter committed Aug 13, 2019
1 parent 50e8051 commit f7b1688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/zpool/zpool_vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f7b1688

Please sign in to comment.