diff --git a/00DIST b/00DIST index d843cded..c8dd67bc 100644 --- a/00DIST +++ b/00DIST @@ -2,8 +2,11 @@ Notes for the distribution of lsof version 4 ******************************************************************** -| The latest release of lsof is always available via anonymous ftp | -| from lsof.itap.purdue.edu. Look in pub/tools/unix/lsof. | +| The latest release of lsof is always available from +| https://github.com/lsof-org/lsof/releases +| +| From 4.92.1, git is introduced to manage changes. +| You can consult the details of changes with git. ******************************************************************** Contents @@ -4914,13 +4917,18 @@ July 14, 2018 Many documentations are not updated yet. URLs in -v output and -h output are updated. -4.92.2 ??? +4.93.0 May 7, 2019 [freebsd] Made FreeBSD 13 adjustment. [darwin] Fix a typo causing a build error. Fix a potential memory leak. [linux] use tirpc for rpc if libc doesn't provide rpc.h. Fix a typo in man page. + [linux] fix memory leaks detected by valgrind about unix + endpoint information. + Update the description about -fg and -fG options on linux. + + Consult git log for more details. Masatake YAMATO , a member of lsof-org -May 6, 2019 +May 7, 2019 diff --git a/Lsof.8 b/Lsof.8 index ca4228a1..5ad62347 100644 --- a/Lsof.8 +++ b/Lsof.8 @@ -4371,7 +4371,7 @@ One way to create such file structures is to run X clients with the DISPLAY variable set to ``:0.0''. .PP The -.BI +|\-f [cfgGn] +.BI +|\-f [cfn] option is not supported under /proc\-based Linux .IR lsof , because it doesn't read kernel structures from kernel memory. diff --git a/README.md b/README.md index f20c52e4..268a8d02 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ If you are interested in maintaining a dialect, let us know via the issue tracker of GitHub (https://github.com/lsof-org/lsof). If we cannot find a volunteer for a dialect, we will remove the dialect. +Many texts in the source tree still refers purdue.edu as the home of +lsof development. It should be https://github.com/lsof-org/lsof, the +new home. The updating is in progress. + We are running another repository, lsof-org/"lsof-linux" derived from lsof-4.91 that is also released by Vic. To the repository, we have introduced some new features and fixes for building specific to diff --git a/dialects/linux/dsock.c b/dialects/linux/dsock.c index 0df77b1f..2ebf07e3 100644 --- a/dialects/linux/dsock.c +++ b/dialects/linux/dsock.c @@ -581,12 +581,24 @@ clear_uxsinfo() int h; /* hash index */ uxsin_t *ui, *up; /* remporary pointers */ +#if defined(HASEPTOPTS) && defined(HASUXSOCKEPT) + pxinfo_t *pp, *pnp; +#endif /* defined(HASEPTOPTS) && defined(HASUXSOCKEPT) */ + if (!Uxsin) return; for (h = 0; h < INOBUCKS; h++) { if ((ui = Uxsin[h])) { do { up = ui->next; + +#if defined(HASEPTOPTS) && defined(HASUXSOCKEPT) + for (pp = ui->pxinfo; pp; pp = pnp) { + pnp = pp->next; + (void) free((FREE_P *)pp); + } +#endif /* defined(HASEPTOPTS) && defined(HASUXSOCKEPT) */ + if (ui->path) (void) free((FREE_P *)ui->path); if (ui->pcb)