summaryrefslogtreecommitdiff
path: root/sys/src/9/port/proc.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-06-12 19:03:07 +0000
committeraiju <devnull@localhost>2017-06-12 19:03:07 +0000
commit773be02aa18095e857c6659416d84951ceb60d41 (patch)
tree26daede4230e14d46d42efbcd6eab8e68adc7687 /sys/src/9/port/proc.c
parent1cfa405d0a272cbd7df22d4b9767eb57e21cc21f (diff)
kernel: add support for hardware watchpoints
Diffstat (limited to 'sys/src/9/port/proc.c')
-rw-r--r--sys/src/9/port/proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c
index 0c701fb8a..2425f32a2 100644
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -1209,6 +1209,10 @@ pexit(char *exitstr, int freemem)
free(up->syscalltrace);
up->syscalltrace = nil;
}
+ if(up->watchpt != nil){
+ free(up->watchpt);
+ up->watchpt = nil;
+ }
qunlock(&up->debug);
/* Sched must not loop for these locks */