diff options
author | Dinghao Liu <[email protected]> | 2023-12-08 15:31:19 +0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-01-22 18:59:06 +0000 |
commit | 95a0d596bbd0552a78e13ced43f2be1038883c81 (patch) | |
tree | 83e653de787cccd276f206f64f102f9de8dd18c8 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
iio: core: fix memleak in iio_device_register_sysfs
When iio_device_register_sysfs_group() fails, we should
free iio_dev_opaque->chan_attr_group.attrs to prevent
potential memleak.
Fixes: 32f171724e5c ("iio: core: rework iio device group creation")
Signed-off-by: Dinghao Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions