diff options
-rw-r--r-- | debugger.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -532,7 +532,9 @@ void dbg_detach(struct process *proc) { } free_breakpoints(proc); - list_remove(proc); + if (proc->next) { /* workaround: its invalid to list_remove() if dbg_attach fails */ + list_remove(proc); + } free(proc); } |