Reuse comm object if possible, avoid useless repetitions of free+strdup.

This commit is contained in:
Hisham
2016-02-02 15:56:52 +01:00
parent 301c346c85
commit 1cfcc42a8f
3 changed files with 19 additions and 8 deletions

View File

@ -68,6 +68,7 @@ typedef struct Process_ {
pid_t ppid;
pid_t tgid;
char* comm;
int commLen;
int indent;
int basenameOffset;