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 d745e60..0555d41 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);