cfdisk: fix possible memory leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
e33ee284f9
commit
a9408274b7
|
@ -219,6 +219,7 @@ static int partition_from_scols(struct fdisk_table *tb,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
while (scols_line_next_child(ln, itr, &chln) == 0)
|
while (scols_line_next_child(ln, itr, &chln) == 0)
|
||||||
partition_from_scols(tb, chln);
|
partition_from_scols(tb, chln);
|
||||||
|
scols_free_iter(itr);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue