cfdisk: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2014-07-17 13:46:27 +02:00
parent e33ee284f9
commit a9408274b7
1 changed files with 1 additions and 0 deletions

View 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;
}