diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-07-09 23:55:54 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-07-09 23:55:54 +0200 |
commit | 6bfff754a84335c4016c74792927b1353f1a686b (patch) | |
tree | 87c3a96324f73fbdab3b4d8b7ea6bed3e0199575 /sys | |
parent | 3a6a754051a6f3f1ba742f12be0a2c33d309ca53 (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.c | 2 |
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; |