summaryrefslogtreecommitdiff
path: root/overlay/mgdb/gdb/winnt-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/mgdb/gdb/winnt-nat.c')
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 5e8eea6..fac6e27 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -133,10 +133,10 @@ static void winnt_plist_remove (pid_t pid)
for (pdbg=plist, pcap=&plist[pcnt]; pdbg<pcap; pdbg++) {
if (pdbg->pid == pid) {
+ close(pdbg->pfd);
winnt_free_modules(pdbg);
winnt_free_threads(pdbg);
- pdbg->pid = 0;
- pdbg->pfd = 0;
+ memset(pdbg,0,sizeof(*pdbg));
return;
}
}