dtfile/sharedFuncs.c: coverity CID 88625; use after free
authorJon Trulson <jon@radscan.com>
Sat, 31 Mar 2018 23:25:35 +0000 (17:25 -0600)
committerJon Trulson <jon@radscan.com>
Sat, 31 Mar 2018 23:25:35 +0000 (17:25 -0600)
cde/programs/dtfile/dtcopy/sharedFuncs.c

index 0d9b3d987f959a0f0b1700f68eb7c2c61493ecfe..efeca3bbf03897845f21679a34448d299b495fc6 100644 (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
     {