diff options
author | Sunmin Lee <sunm.lee@samsung.com> | 2016-09-20 14:25:05 +0900 |
---|---|---|
committer | Sunmin Lee <sunm.lee@samsung.com> | 2016-09-20 14:25:05 +0900 |
commit | 6c778d157733220e7c4eaba46b5c84b8a6583314 (patch) | |
tree | e3a013e3b5e79915fad1945a3aabc3b7b7523c49 | |
parent | 1d54574aafb44faf41ba52b3334ce9e687993cf1 (diff) | |
download | system-plugin-accepted/tizen/mobile/20160921.081208.tar.gz system-plugin-accepted/tizen/mobile/20160921.081208.tar.bz2 system-plugin-accepted/tizen/mobile/20160921.081208.zip |
systemd-user-helper: fix handle leaksubmit/tizen/20160921.014304accepted/tizen/wearable/20160921.081203accepted/tizen/tv/20160921.081153accepted/tizen/mobile/20160921.081208accepted/tizen/ivi/20160921.081157accepted/tizen/common/20160921.161650
Fix handle leaks at systemd-user-helper.
Change-Id: Ida4fe08c053379b8d27591844a4eae37a1476608
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rw-r--r-- | src/systemd-user-helper/systemd-user-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c index 2012e9d..2bffce6 100644 --- a/src/systemd-user-helper/systemd-user-helper.c +++ b/src/systemd-user-helper/systemd-user-helper.c @@ -38,6 +38,7 @@ sym = dlsym(handle, name); \ if (!sym) { \ fprintf(stderr, "dlsym %s error\n", name); \ + dlclose(handle); \ return -1; \ } \ } while (0); @@ -159,9 +160,11 @@ static int wait_condition(void) r = wait_mount_user(); if (r < 0) { fprintf(stderr, "wait_mout_user failed\n"); + dlclose(h); return r; } + dlclose(h); return 0; } |