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
1 changed files with 0 additions and 1 deletions

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
{