]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: fix possible memory leak [coverity scan]
authorKarel Zak <kzak@redhat.com>
Thu, 17 Jul 2014 11:46:27 +0000 (13:46 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Jul 2014 11:46:27 +0000 (13:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 4ea9e1703d297cd15cfd160074b1936e8be14bc4..2f2dad50e8dff5209f7c2263607b1ee9d2089f53 100644 (file)
@@ -219,6 +219,7 @@ static int partition_from_scols(struct fdisk_table *tb,
                        return -EINVAL;
                while (scols_line_next_child(ln, itr, &chln) == 0)
                        partition_from_scols(tb, chln);
+               scols_free_iter(itr);
        }
        return 0;
 }