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:
parent
c32b5db653
commit
e7269115b5
1 changed files with 0 additions and 1 deletions
|
@ -732,7 +732,6 @@ _DtCopyChangeTildeToHome (input_string)
|
||||||
/* NOTE: users_home_dir has trailing '/' */
|
/* NOTE: users_home_dir has trailing '/' */
|
||||||
full_path = (char *) XtMalloc(strlen(homedir) + strlen(input_string+2) + 1);
|
full_path = (char *) XtMalloc(strlen(homedir) + strlen(input_string+2) + 1);
|
||||||
sprintf(full_path, "%s%s", homedir, (input_string + 2));
|
sprintf(full_path, "%s%s", homedir, (input_string + 2));
|
||||||
free(homedir);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue