From e7269115b586dd3b4cc8e96bb1ab2fd2803704db Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 31 Mar 2018 17:25:35 -0600 Subject: [PATCH] dtfile/sharedFuncs.c: coverity CID 88625; use after free --- cde/programs/dtfile/dtcopy/sharedFuncs.c | 1 - 1 file changed, 1 deletion(-) 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 { -- 2.25.1