]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
mktemp: plug an inconsequential leak
authorJim Meyering <meyering@redhat.com>
Sat, 27 Sep 2008 10:05:48 +0000 (12:05 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 28 Sep 2008 21:02:40 +0000 (23:02 +0200)
* src/mktemp.c (main) [lint]: Free template.

src/mktemp.c

index d745e6069a5de3d8900fe8946ccb2e1c68519f52..0555d41a8ed776f07d75f6b7d2018de3a75093b1 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-/* Jim Meyering */
+/* Written by Jim Meyering.  */
 
 #include <config.h>
 #include <stdio.h>
@@ -279,6 +279,7 @@ main (int argc, char **argv)
 
 #ifdef lint
   free (dest_name);
+  free (template);
 #endif
 
   exit (status);