Fix dlclose issue when calling DLP feature
[platform/upstream/curl.git] / lib / extensions / curl_extensions.c
index a61d9f3..a0c9fdd 100644 (file)
@@ -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");