fix SVACE issue 93/113493/1 accepted/tizen/ivi/20170208.103427 accepted/tizen/mobile/20170208.103337 accepted/tizen/tv/20170208.103353 accepted/tizen/wearable/20170208.103410 submit/tizen/20170208.034108
authorjomui <jongmun.woo@samsung.com>
Wed, 8 Feb 2017 02:28:15 +0000 (11:28 +0900)
committerjomui <jongmun.woo@samsung.com>
Wed, 8 Feb 2017 02:28:31 +0000 (11:28 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I186e5a92a3f6e820067db35b43eb972ce7c0e50e

location/module/module-internal.c

index 6bd744c..e97d738 100755 (executable)
@@ -51,12 +51,12 @@ static GMod *gmod_new(const char *module_name, gboolean is_resident)
        char *module_path = g_strndup(MODULE_PATH_PREFIX, strlen(MODULE_PATH_PREFIX)+1);
        /* gmod->path = g_module_build_path(MODULE_PATH_PREFIX, gmod->name); */
        gmod->path = g_module_build_path(module_path, gmod->name);
+       g_free(module_path);
        if (!gmod->path) {
                g_free(gmod->name);
                g_free(gmod);
                return NULL;
        }
-       g_free(module_path);
 
        gmod->module = g_module_open(gmod->path, G_MODULE_BIND_LAZY);
        if (!gmod->module) {