commit 4e824db4b330a4af3213f84e0bfc3812ae3116dd parent e05860576bfef29ebd18049c142a735227eb55ed Author: Anselm R. Garbe <garbeam@wmii.de> Date: Tue, 2 May 2006 00:00:16 +0200 fixed double-free bug Diffstat:
| cmd/wm/fs.c | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c @@ -767,12 +767,11 @@ xremove(IXPConn *c, Fcall *fcall) switch(type) { case FsDbar: { - Bar *l = bar.data[i1]; - if(l->intern) + Bar *b = bar.data[i1]; + if(b->intern) return Enoperm; /* now detach the bar */ - destroy_bar(l); - free(l); + destroy_bar(b); draw_bar(); } break;