Hi,

I'd like to propose you fix of a file pointer leak found by coverity scan. Patch is attached.

Best regards,
Vitezslav Crhonek
--- rateup.c.orig       2011-08-16 15:42:40.820565704 +0200
+++ rateup.c    2011-08-16 15:44:15.859559278 +0200
@@ -1792,6 +1792,7 @@
   if (!(cbuf = fread (buff, 1, LENGTH_OF_BUFF, fp)))
     {
       fprintf (stderr, "%s, %s ERROR: Parameters file empty\n", bufftime, 
program);
+      flcose (fp);
       return (1);
     }
   fclose (fp);
_______________________________________________
mrtg-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers

Reply via email to