1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtfile/sharedFuncs.c: coverity CID 88625; use after free

This commit is contained in:
Jon Trulson 2018-03-31 17:25:35 -06:00
parent c32b5db653
commit e7269115b5

View file

@ -732,7 +732,6 @@ _DtCopyChangeTildeToHome (input_string)
/* NOTE: users_home_dir has trailing '/' */
full_path = (char *) XtMalloc(strlen(homedir) + strlen(input_string+2) + 1);
sprintf(full_path, "%s%s", homedir, (input_string + 2));
free(homedir);
}
else
{