Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/partx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disk-utils/partx.c b/disk-utils/partx.c index 43a6448db..0d66abadb 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -1054,6 +1054,8 @@ int main(int argc, char **argv) if (loopdev) loopcxt_deinit(&lc); + free(wholedisk); + if (close_fd(fd) != 0) err(EXIT_FAILURE, _("write failed")); -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html