]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
mktemp: simplify -fsanitize=leak pacification
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
* src/mktemp.c (main) [lint]: Omit unnecessary cleanup.
Use main_exit, not return.

src/mktemp.c

index 4c11d04d1b4e881d2832ed87333f6edf968263fd..9edcf5415473938d67760956020d66a4eb935d21 100644 (file)
@@ -341,10 +341,5 @@ main (int argc, char **argv)
         }
     }
 
-#ifdef lint
-  free (dest_name);
-  free (template);
-#endif
-
-  return status;
+  main_exit (status);
 }