From ca285034b2a37b8e00843776bda0fd6c8f0be31c Mon Sep 17 00:00:00 2001 From: tizen Date: Wed, 1 Nov 2017 16:08:44 -0200 Subject: [PATCH] Fix dlclose issue when calling DLP feature Change-Id: Id84c9f70c250b3798b4c2b730a45f817b5341c2a Signed-off-by: tizen --- extensions/tizen_dlp.c | 2 +- lib/extensions/curl_extensions.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/tizen_dlp.c b/extensions/tizen_dlp.c index 81ffa4c..200bce0 100644 --- a/extensions/tizen_dlp.c +++ b/extensions/tizen_dlp.c @@ -19,7 +19,7 @@ static void (*privacy_guard_dlp_check_leak)(const char *, char * const, size_t) void tizen_dlp_init(void) { if (first_run) { - void *handle = dlopen(LIBRARY_PATH, RTLD_LAZY); + void *handle = dlopen(LIBRARY_PATH, RTLD_LAZY|RTLD_NODELETE); if (handle) { privacy_guard_dlp_init = dlsym(handle, "privacy_guard_dlp_init"); privacy_guard_dlp_check_leak = dlsym(handle, "privacy_guard_dlp_check_leak"); diff --git a/lib/extensions/curl_extensions.c b/lib/extensions/curl_extensions.c index a61d9f3..a0c9fdd 100644 --- a/lib/extensions/curl_extensions.c +++ b/lib/extensions/curl_extensions.c @@ -44,7 +44,7 @@ static void (*tizen_dlp_check_leak)(const char *, char * const, size_t) = NULL; static void curl_extensions_init(void) { if (first_run) { - void *handle = dlopen(LIBRARY_PATH, RTLD_LAZY); + void *handle = dlopen(LIBRARY_PATH, RTLD_LAZY|RTLD_NODELETE); if (handle) { tizen_dlp_init = dlsym(handle, "tizen_dlp_init"); tizen_dlp_check_leak = dlsym(handle, "tizen_dlp_check_leak"); -- 2.7.4