Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/ps



Module Name:    src
Committed By:   kamil
Date:           Wed Sep 11 17:02:53 UTC 2019

Modified Files:
        src/bin/ps: ps.c

Log Message:
Plug memory leak in ps(1)

pinfo is allocated in setpinfo() with calloc(3).

Free it when no longer used, just before the program termination.

Detected with LSan.


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/bin/ps/ps.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index