summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2021-01-29 18:21:15 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2021-01-29 18:27:42 +0900
commitc56c258964306361ceef7c14880883253ce923fc (patch)
tree2516fdf4614954f5f2ec02844ffcface6b0e2943
parentbefe5bc481f3a3b3ef2c42d7cebdadec5e459722 (diff)
downloadpass-accepted/tizen_6.0_unified.tar.gz
pass-accepted/tizen_6.0_unified.tar.bz2
pass-accepted/tizen_6.0_unified.zip
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.c2
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;
}
}