summaryrefslogtreecommitdiff
path: root/include/uapi/linux/switchtec_ioctl.h
diff options
context:
space:
mode:
authorYulong Zhang <yulong.zhang@metoak.net>2023-01-17 10:51:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-11 16:32:01 +0100
commit443e4d7788b33b3c544aca0748d65bf824241640 (patch)
tree18b92c44545e6303db7fe3ea55c6236fc7387c9e /include/uapi/linux/switchtec_ioctl.h
parent2b6d7cad459507f25c598f414846e438f4cec948 (diff)
tools/iio/iio_utils:fix memory leak
[ Upstream commit f2edf0c819a4823cd6c288801ce737e8d4fcde06 ] 1. fopen sysfs without fclose. 2. asprintf filename without free. 3. if asprintf return error,do not need to free the buffer. Signed-off-by: Yulong Zhang <yulong.zhang@metoak.net> Link: https://lore.kernel.org/r/20230117025147.69890-1-yulong.zhang@metoak.net Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux/switchtec_ioctl.h')
0 files changed, 0 insertions, 0 deletions