diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2021-01-29 18:21:15 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2021-01-29 18:27:42 +0900 |
commit | c56c258964306361ceef7c14880883253ce923fc (patch) | |
tree | 2516fdf4614954f5f2ec02844ffcface6b0e2943 | |
parent | befe5bc481f3a3b3ef2c42d7cebdadec5e459722 (diff) | |
download | pass-accepted/tizen_6.0_unified.tar.gz pass-accepted/tizen_6.0_unified.tar.bz2 pass-accepted/tizen_6.0_unified.zip |
pass: resmon: Fix memory leak of udev_monitor in error pathsubmit/tizen_6.0/20210201.005217accepted/tizen/6.0/unified/20210201.093355tizen_6.0accepted/tizen_6.0_unified
The resmon_uevent_add() has memory leak in error path. Fix the
memory leak.
Change-Id: I53c07b891b888cd1bdd596f872dd204f620d5b7c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | src/pass/pass-resmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pass/pass-resmon.c b/src/pass/pass-resmon.c index b81a868..0539698 100644 --- a/src/pass/pass-resmon.c +++ b/src/pass/pass-resmon.c @@ -590,7 +590,7 @@ static int resmon_uevent_add(struct resmon *monitor) _E("failed to invoke .init of resmon source " \ "(res_name:%s, src_type: 0x%x)\n", res->config_data.res_name, monitor->src_type); - return ret; + goto err_udev_monitor_fd; } } |