diff options
author | christos <christos@NetBSD.org> | 2006-05-13 22:45:11 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2006-05-13 22:45:11 +0000 |
commit | 3dd8bc6924dada5dac7baeb14421fab2ab28653f (patch) | |
tree | 0c25d8be9da8e53d4ffc6a8938622c2ad5c5cd04 /hack | |
parent | c36e6ebf618a0458499829024f8695f5c9fdb56c (diff) | |
download | bsdgames-darwin-3dd8bc6924dada5dac7baeb14421fab2ab28653f.tar.gz bsdgames-darwin-3dd8bc6924dada5dac7baeb14421fab2ab28653f.tar.zst bsdgames-darwin-3dd8bc6924dada5dac7baeb14421fab2ab28653f.zip |
Coverity CID 3382: Fix memory leak.
Diffstat (limited to 'hack')
-rw-r--r-- | hack/hack.end.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hack/hack.end.c b/hack/hack.end.c index a3d4c508..51378bf9 100644 --- a/hack/hack.end.c +++ b/hack/hack.end.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.end.c,v 1.6 2003/04/02 18:36:36 jsm Exp $ */ +/* $NetBSD: hack.end.c,v 1.7 2006/05/13 22:45:11 christos Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hack.end.c,v 1.6 2003/04/02 18:36:36 jsm Exp $"); +__RCSID("$NetBSD: hack.end.c,v 1.7 2006/05/13 22:45:11 christos Exp $"); #endif /* not lint */ #include <signal.h> @@ -477,6 +477,7 @@ topten() if (!done_stopprint) (void) outentry(0, t0, 1); (void) fclose(rfile); + free(t0); unlock: (void) unlink(reclock); } |