From 23cf1d51edc8b946476714b48ce27e64a8b01996 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Fri, 26 Jun 2009 12:02:26 +0000 Subject: [PATCH] Removed the duplicate file opening that resulted in a resource leak. --- squidguard_log.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/squidguard_log.c b/squidguard_log.c index 2f2fcfa..68f0a87 100644 --- a/squidguard_log.c +++ b/squidguard_log.c @@ -83,11 +83,6 @@ void read_log(char *wentp, FILE *fp_ou) exit(EXIT_FAILURE); } - if ((fp_in=fopen(wentp,"r"))==NULL) { - fprintf(stderr, "SARG: (squidguard) %s: %s\n",text[8],wentp); - exit(1); - } - if ((fp_in=fopen(wentp,"r"))==NULL) { fprintf(stderr, "SARG: (squidguard) %s: %s\n",text[8],wentp); exit(1); -- 2.47.2