The eina_vpath_resolve could allocate memory and return it.
But the eina_xdg_env_init does not release it.
*Detected by static analysis with the Coverity
Differential Revision: https://phab.enlightenment.org/D7066
Change-Id: Ic243f70632dd731cf1cab426d1abfe013afa362b
{
char buf[PATH_MAX];
char *s;
- const char *home;
+ char home[PATH_MAX];
Eina_Vpath_Interface_User user;
- home = eina_vpath_resolve("(:home:)/");
+ eina_vpath_resolve_snprintf(home, sizeof(home), "(:home:)/");
memset(&user, 0, sizeof(Eina_Vpath_Interface_User));