Solaris: fix a memory leak caused by calling ProcessList_getProcess twice for each LWP

This commit is contained in:
Guy M. Broome
2018-03-30 14:34:12 -04:00
committed by Hisham Muhammad
parent 0969f83b21
commit da4877f48c
3 changed files with 65 additions and 83 deletions

View File

@ -48,7 +48,7 @@ char* SolarisProcessList_readZoneName(kstat_ctl_t* kd, SolarisProcess* sproc);
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
void ProcessList_delete(ProcessList* this);
void ProcessList_delete(ProcessList* pl);
/* NOTE: the following is a callback function of type proc_walk_f
* and MUST conform to the appropriate definition in order