Allocate/free space associated with saved_entryset and saved_exitset.
This commit is contained in:
parent
5329c7568d
commit
1d5e060273
1 changed files with 5 additions and 0 deletions
|
@ -674,6 +674,9 @@ create_procinfo (int pid, int tid)
|
|||
load_syscalls (pi);
|
||||
#endif
|
||||
|
||||
pi->saved_entryset = sysset_t_alloc (pi);
|
||||
pi->saved_exitset = sysset_t_alloc (pi);
|
||||
|
||||
/* Chain into list. */
|
||||
if (tid == 0)
|
||||
{
|
||||
|
@ -743,6 +746,8 @@ destroy_one_procinfo (procinfo **list, procinfo *pi)
|
|||
#ifdef DYNAMIC_SYSCALLS
|
||||
free_syscalls (pi);
|
||||
#endif
|
||||
xfree (pi->saved_entryset);
|
||||
xfree (pi->saved_exitset);
|
||||
xfree (pi);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue