Skip to content
Commit a9487917 authored by Yangtao Li's avatar Yangtao Li Committed by MyungJoo Ham
Browse files

PM / devfreq: fix mem leak in devfreq_add_device()



'devfreq' is malloced in devfreq_add_device() and should be freed in
the error handling cases, otherwise it will cause memory leak.

Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 0d00a239
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment