projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c32b5db
)
dtfile/sharedFuncs.c: coverity CID 88625; use after free
author
Jon Trulson
<jon@radscan.com>
Sat, 31 Mar 2018 23:25:35 +0000
(17:25 -0600)
committer
Jon Trulson
<jon@radscan.com>
Sat, 31 Mar 2018 23:25:35 +0000
(17:25 -0600)
cde/programs/dtfile/dtcopy/sharedFuncs.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtfile/dtcopy/sharedFuncs.c
b/cde/programs/dtfile/dtcopy/sharedFuncs.c
index 0d9b3d987f959a0f0b1700f68eb7c2c61493ecfe..efeca3bbf03897845f21679a34448d299b495fc6 100644
(file)
--- a/
cde/programs/dtfile/dtcopy/sharedFuncs.c
+++ b/
cde/programs/dtfile/dtcopy/sharedFuncs.c
@@
-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
{