From: Jon Trulson Date: Sat, 31 Mar 2018 23:25:35 +0000 (-0600) Subject: dtfile/sharedFuncs.c: coverity CID 88625; use after free X-Git-Tag: 2.2.4a~164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7269115b586dd3b4cc8e96bb1ab2fd2803704db;p=oweals%2Fcde.git dtfile/sharedFuncs.c: coverity CID 88625; use after free --- diff --git a/cde/programs/dtfile/dtcopy/sharedFuncs.c b/cde/programs/dtfile/dtcopy/sharedFuncs.c index 0d9b3d98..efeca3bb 100644 --- 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 {