From: tizen Date: Wed, 1 Nov 2017 18:08:44 +0000 (-0200) Subject: Fix dlclose issue when calling DLP feature X-Git-Tag: accepted/tizen/unified/20171107.055246^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fcurl.git;a=commitdiff_plain;h=ca285034b2a37b8e00843776bda0fd6c8f0be31c Fix dlclose issue when calling DLP feature Change-Id: Id84c9f70c250b3798b4c2b730a45f817b5341c2a Signed-off-by: tizen --- 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");