Commit 70a3d7d
committed
btrfs-progs: handle allocation errors in cmd_subvolume_list()
Handle potential allocation errors of the filtering and sorting helper
structures (they have to be initialized before the option parsing). Also
drop conditional free() (reported by CodeQL scan).
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 8e3fc85 commit 70a3d7d
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
1583 | | - | |
| 1582 | + | |
| 1583 | + | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| |||
1591 | 1591 | | |
1592 | 1592 | | |
1593 | 1593 | | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
1594 | 1598 | | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1595 | 1603 | | |
1596 | 1604 | | |
1597 | 1605 | | |
| |||
1730 | 1738 | | |
1731 | 1739 | | |
1732 | 1740 | | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1741 | + | |
| 1742 | + | |
1737 | 1743 | | |
1738 | 1744 | | |
1739 | 1745 | | |
| |||
0 commit comments