From 0cef9d971643acfb2c83647f5f5903c96d774d97 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 21 Mar 2006 20:25:55 +0000 Subject: Coverity CID 2735: Remove dead code. --- fortune/fortune/fortune.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c index 2addaab8..c9fb8a3b 100644 --- a/fortune/fortune/fortune.c +++ b/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $NetBSD: fortune.c,v 1.47 2006/03/18 23:54:17 christos Exp $ */ +/* $NetBSD: fortune.c,v 1.48 2006/03/21 20:25:55 christos Exp $ */ /*- * Copyright (c) 1986, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\ #if 0 static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fortune.c,v 1.47 2006/03/18 23:54:17 christos Exp $"); +__RCSID("$NetBSD: fortune.c,v 1.48 2006/03/21 20:25:55 christos Exp $"); #endif #endif /* not lint */ @@ -568,8 +568,6 @@ over: if (dir == NULL && tfile[0] != '/') { int n = add_file(percent, tfile, FORTDIR, head, tail, parent); - if (tpath) - free(tpath); free(tfile); return n; } -- cgit v1.2.3-56-ge451