From 412f33b286590e896aa43f4e6138f5db844758cd Mon Sep 17 00:00:00 2001 From: jomui Date: Wed, 8 Feb 2017 11:28:15 +0900 Subject: [PATCH] fix SVACE issue Signed-off-by: jomui Change-Id: I186e5a92a3f6e820067db35b43eb972ce7c0e50e --- location/module/module-internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/location/module/module-internal.c b/location/module/module-internal.c index 6bd744c..e97d738 100755 --- a/location/module/module-internal.c +++ b/location/module/module-internal.c @@ -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) { -- 2.7.4