Allocate/free space associated with saved_entryset and saved_exitset.

This commit is contained in:
Kevin Buettner 2001-07-07 21:55:28 +00:00
parent 5329c7568d
commit 1d5e060273
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}