summaryrefslogtreecommitdiff
path: root/tempfile.c
diff options
context:
space:
mode:
authorClint Adams <schizo@debian.org>2009-02-01 13:53:03 -0500
committerClint Adams <schizo@debian.org>2009-02-01 13:53:03 -0500
commit90736ae5ec5995c08b9c4cf6d7f87f905030d9a9 (patch)
tree78eef434f55592f1d21e35c1dd6a15e00565af62 /tempfile.c
parent89ec99c5704be2bf70961260767ecf7d9b3f3cf6 (diff)
downloaddebianutils-90736ae5ec5995c08b9c4cf6d7f87f905030d9a9.tar.gz
tempfile.c: free memory right before exit, thanks to Franck Joncourt.
Diffstat (limited to 'tempfile.c')
-rw-r--r--tempfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tempfile.c b/tempfile.c
index c259349..afefb48 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -147,5 +147,6 @@ main (int argc, char **argv)
if (close(fd))
syserror("close");
puts(name);
+ free(name);
exit(0);
}