From 57f35d206c1155ff0d948a18cea4713617df8f3c Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 18 Dec 2010 16:12:06 +0200 Subject: [PATCH] =?utf8?q?=D0=A3=20=D1=82=D1=80=D0=B0=D1=84=D0=BA=D0=B0?= =?utf8?q?=D1=83=D0=BD=D1=82=D0=B5=D1=80=D1=96=20=D0=B2=D0=B8=D0=BF=D1=80?= =?utf8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2=D1=82=D1=80=D0=B0?= =?utf8?q?=D1=82=D0=B0=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2=D0=BE=D0=B3?= =?utf8?q?=D0=BE=20=D0=B4=D0=B5=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=BE?= =?utf8?q?=D1=80=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=BE=D0=B1=D1=80=D0=BE?= =?utf8?q?=D0=B1=D1=86=D1=96=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BE=D0=BA?= =?utf8?q?=20=D1=83=20=D1=84=D0=B0=D0=B9=D0=BB=D1=96=20=D0=BF=D1=80=D0=B0?= =?utf8?q?=D0=B2=D0=B8=D0=BB=20=D0=BA=D0=BB=D0=B0=D1=81=D0=B8=D1=84=D1=96?= =?utf8?q?=D0=BA=D0=B0=D1=86=D1=96=D1=97=20=D1=82=D1=80=D0=B0=D1=84=D1=96?= =?utf8?q?=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/traffcounter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/stargazer/traffcounter.cpp b/projects/stargazer/traffcounter.cpp index 72c1295b..e9c143ec 100644 --- a/projects/stargazer/traffcounter.cpp +++ b/projects/stargazer/traffcounter.cpp @@ -698,6 +698,7 @@ while (fgets(str, 1023, f)) if (r != 3) { WriteServLog("Error in file %s. There must be 3 parameters. Line %d.", rulesFileName.c_str(), lineNumber); + fclose(f); return true; } @@ -720,6 +721,7 @@ while (fgets(str, 1023, f)) { WriteServLog("Error in file %s. Line %d.", rulesFileName.c_str(), lineNumber); + fclose(f); return true; } @@ -727,6 +729,7 @@ while (fgets(str, 1023, f)) { WriteServLog("Error in file %s. Error in adress. Line %d.", rulesFileName.c_str(), lineNumber); + fclose(f); return true; } if (!test) -- 2.44.2