diff options
| author | Karel Zak <kzak@redhat.com> | 2014-07-17 13:46:27 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-07-17 13:46:27 +0200 |
| commit | a9408274b79012759aaeab781353435dbf0aeeb3 (patch) | |
| tree | 9b9aeed98587bc9033bdb2e205ab7ba47896dbe5 /disk-utils/cfdisk.c | |
| parent | e33ee284f9ca894c584a00d65141dff0746fa0c6 (diff) | |
| download | util-linux-a9408274b79012759aaeab781353435dbf0aeeb3.tar.gz | |
cfdisk: fix possible memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
| -rw-r--r-- | disk-utils/cfdisk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 4ea9e1703d..2f2dad50e8 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -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; } |
