Use eglib g_* allocators rather than malloc/calloc (#5359)
[mono.git] / mono / metadata / mono-config.c
index e3d19ca7c130c3ef57cf87b841a6920a1712e55d..7ee7fe2e23a7fabca3e238729679264827738188 100644 (file)
@@ -686,7 +686,7 @@ mono_set_config_dir (const char *dir)
        /* If this environment variable is set, overrides the directory computed */
        char *env_mono_cfg_dir = g_getenv ("MONO_CFG_DIR");
        if (env_mono_cfg_dir == NULL && dir != NULL)
-               env_mono_cfg_dir = strdup (dir);
+               env_mono_cfg_dir = g_strdup (dir);
 
        mono_cfg_dir = env_mono_cfg_dir;
 }