]> 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>
Thu, 24 Aug 2017 09:23:44 +0000 (11:23 +0200)
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
libfdisk/src/partition.c

index 3a34c4fdaea31a8cc77e55b6764f1aa42119e5d2..cccd9a1b3574bb3942d03a5ca2242206a1cb7b5a 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;