From 3dd8bc6924dada5dac7baeb14421fab2ab28653f Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 13 May 2006 22:45:11 +0000 Subject: Coverity CID 3382: Fix memory leak. --- hack/hack.end.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hack/hack.end.c') 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 #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 @@ -477,6 +477,7 @@ topten() if (!done_stopprint) (void) outentry(0, t0, 1); (void) fclose(rfile); + free(t0); unlock: (void) unlink(reclock); } -- cgit v1.2.3-56-ge451