- stats.c:fdstats_output(): fixed coverity CID 120798 (#1 of 1): Resource leak (RESOU...
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 29 Jun 2015 16:09:49 +0000 (16:09 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 29 Jun 2015 16:09:49 +0000 (16:09 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6219 82007160-df01-0410-b94d-b575c5fd34c7

src/stats.c

index 665add5f744a665555b5fecf0d276943d82722fe..00d4c1625c998c8a1370bbad1e0e55506aa3bdb5 100644 (file)
@@ -209,7 +209,7 @@ fdstats_output(const char *target)
   {
     int newfd = dup(i);
 
-    if (newfd > 0)
+    if (newfd > -1)
     {
       ++total_fd_use;
       close(newfd);