mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-26 20:34:51 +00:00
Use after free.
This commit is contained in:
parent
565ba002e9
commit
5cb483680f
1 changed files with 2 additions and 2 deletions
4
window.c
4
window.c
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: window.c,v 1.3 2007-08-27 10:08:44 nicm Exp $ */
|
||||
/* $Id: window.c,v 1.4 2007-08-27 11:41:00 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
|
|
@ -162,8 +162,8 @@ window_remove(struct windows *ww, struct window *w)
|
|||
|
||||
w->references--;
|
||||
if (w->references == 0) {
|
||||
window_destroy(w);
|
||||
window_remove(&windows, w);
|
||||
window_destroy(w);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue