cmd/gpt: avoid NULL check before free()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 28 Apr 2020 19:40:13 +0000 (21:40 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 May 2020 15:34:01 +0000 (11:34 -0400)
commitb142d0ac1946701f4d592869c2d81e42afe2e294
treea14d992d100d75da51a7b7b3bcff2b58f485ac2e
parentea5d3731b843b14f1c48d0d0f2c7d2877ecbf673
cmd/gpt: avoid NULL check before free()

free() checks if its argument is NULL. Do not duplicate this in the calling
code.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/gpt.c