X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fload.c;h=019f952c07066e7c753dbd193cc40d58ccab11d6;hb=f763c933f11eeb07d4a159fc711190434439eef4;hp=fbe6c4def58de57bb7dd60d95f3aa8e7c7f86f68;hpb=c87194194948fec81eb7ead8b7d9615efc7778e1;p=collectd.git diff --git a/src/load.c b/src/load.c index fbe6c4de..019f952c 100644 --- a/src/load.c +++ b/src/load.c @@ -1,6 +1,6 @@ /** * collectd - src/load.c - * Copyright (C) 2005 Florian octo Forster + * Copyright (C) 2005,2006 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -107,6 +107,7 @@ static void load_read (void) if (fgets (buffer, 16, loadavg) == NULL) { syslog (LOG_WARNING, "load: fgets: %s", strerror (errno)); + fclose (loadavg); return; }