Skip to content
Commit dfd4f649 authored by Pan Bian's avatar Pan Bian Committed by Jonathan Cameron
Browse files

iio: dummy_evgen: fix possible memleak in evgen init



The memory allocated in the function iio_dummy_evgen_create is not
released if it fails to add the evgen device to device hierarchy. This
may result in a memory leak bug.

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent ce7afa5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment