Searched hist:"934 b14f2bb306dfa1947d30f4df90cdc8b710332" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/fs/ext4/ |
| H A D | ext4_common.c | 934b14f2bb306dfa1947d30f4df90cdc8b710332 Sat Sep 05 04:03:44 UTC 2015 Stephen Warren <swarren@nvidia.com> ext4: free allocations by parse_path()
parse_path() malloc()s the entries in the array it's passed. Those allocations must be free()d by the caller, ext4fs_get_parent_inode_num(). Add code to do this.
For this to work, all the array entries must be dynamically allocated, rather than a mix of dynamic and static allocations. Fix parse_path() not to over-write arr[0] with a pointer to statically allocated data.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com>
|