psmisc/psmisc-22.6-fdleak.patch
2009-09-10 08:21:58 +00:00

19 lines
375 B
Diff

--- src/fuser.c
+++ src/fuser.c 2008-09-01 15:03:05.000000000 +0200
@@ -1404,6 +1404,7 @@ void fill_unix_cache(struct unixsocket_l
*unixsocket_head = newsocket;
} /* while */
+ fclose(fp);
}
static inline int isnetfs(const char * type)
@@ -1650,6 +1651,7 @@ static void scan_knfsd(struct names *nam
}
}
+ fclose(fp);
}
#endif /* NFSCHECKS */