From: Vaclav Dolezal Date: Tue, 15 Aug 2017 08:02:45 +0000 (+0200) Subject: libfdisk: fix fdisk_reset_partition() leaking *_chs strings. X-Git-Tag: v2.30.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4ee070a82c73ad4e5c11c6ddc06e0fb57c11e2;p=thirdparty%2Futil-linux.git libfdisk: fix fdisk_reset_partition() leaking *_chs strings. Signed-off-by: Vaclav Dolezal --- diff --git a/libfdisk/src/partition.c b/libfdisk/src/partition.c index 6d996e7d7b..7ff098c203 100644 --- a/libfdisk/src/partition.c +++ b/libfdisk/src/partition.c @@ -70,6 +70,8 @@ void fdisk_reset_partition(struct fdisk_partition *pa) free(pa->fstype); free(pa->fsuuid); free(pa->fslabel); + free(pa->start_chs); + free(pa->end_chs); memset(pa, 0, sizeof(*pa)); pa->refcount = ref;