From: Kevin Buettner Date: Sat, 7 Jul 2001 21:55:28 +0000 (+0000) Subject: Allocate/free space associated with saved_entryset and saved_exitset. X-Git-Tag: gdb_5_1-2001-07-29-branchpoint~263 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d5e060273e081d91eb8134dbfad2a4503e9a891;p=thirdparty%2Fbinutils-gdb.git Allocate/free space associated with saved_entryset and saved_exitset. --- diff --git a/gdb/procfs.c b/gdb/procfs.c index 990130c680f..76333ef04f6 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -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); }