From: Seonah Moon Date: Wed, 3 Jun 2020 11:45:04 +0000 (+0900) Subject: Do not unload agent symbol file X-Git-Tag: accepted/tizen/5.5/unified/20200722.111433^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=925e054da537cb2df3acdc3723eace8eab13be3c;p=platform%2Fframework%2Fweb%2Fdownload-provider.git Do not unload agent symbol file If symbol file is unload before terminating program, segfault can occur when access to static variable. (ex. mutex_da_info_list) Change-Id: I08d78f3f4a8b5ecb8cd68671d07c1e23ce57fc57 --- diff --git a/provider/download-provider-plugin-download-agent.c b/provider/download-provider-plugin-download-agent.c index d61f63e..f72902a 100755 --- a/provider/download-provider-plugin-download-agent.c +++ b/provider/download-provider-plugin-download-agent.c @@ -712,8 +712,9 @@ void dp_deinit_agent() if (download_agent_deinit != NULL) (*download_agent_deinit)(); - dlclose(g_da_handle); - g_da_handle = NULL; + // Do not unload a symbol file here. + //dlclose(g_da_handle); + //g_da_handle = NULL; } }