[wiki] [sites] All fds need to be closed. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 22 Dec 2012 20:18:54 +0100

commit f751aa5c3ec03013e465a6236c18081ac4eca4e9
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Dec 22 20:16:48 2012 +0100

    All fds need to be closed.

diff --git a/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c b/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
index 68dd012..f026b7d 100644
--- a/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
+++ b/dwm.suckless.org/dwmstatus/dwmstatus-netusage.c
_AT_@ -75,6 +75,7 @@ parse_netdev(unsigned long long int *receivedabs, unsigned long long int *sentab
                 return 0;
             }
         }
+ fclose(devfd);
         free(buf);
         return 1;
 }
Received on Sat Dec 22 2012 - 20:18:54 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 22 2012 - 20:24:07 CET