summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-07-09 23:55:54 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-07-09 23:55:54 +0200
commit6bfff754a84335c4016c74792927b1353f1a686b (patch)
tree87c3a96324f73fbdab3b4d8b7ea6bed3e0199575 /sys
parent3a6a754051a6f3f1ba742f12be0a2c33d309ca53 (diff)
abaco: fix double free race of p->status string (thanks BurnZeZ for the proc snap)
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/abaco/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/abaco/util.c b/sys/src/cmd/abaco/util.c
index 9d4fae1b8..d9c18207c 100644
--- a/sys/src/cmd/abaco/util.c
+++ b/sys/src/cmd/abaco/util.c
@@ -962,12 +962,12 @@ addrefresh(Page *p, char *fmt, ...)
if(s == nil)
error("runevsmprint failed");
+ qlock(&refreshlock);
if(p->status){
free(p->status);
p->status = nil;
}
p->status = s;
- qlock(&refreshlock);
for(r=refreshs; r!=nil; r=r->next)
if(r->p == p)
goto Return;