]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix fdisk_reset_partition() leaking *_chs strings.
authorVaclav Dolezal <vdolezal@redhat.com>
Tue, 15 Aug 2017 08:02:45 +0000 (10:02 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Sep 2017 12:21:58 +0000 (14:21 +0200)
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
libfdisk/src/partition.c

index 6d996e7d7b8ed2399d2464bf4cbfcecd21062499..7ff098c203e4ef834f33d1ad99a1b1178b1d43ee 100644 (file)
@@ -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;