con.c: Reorder use after free
This shows up in various static analysis tools. I doubt that it is dangerous in any way but the end result is the same.
This commit is contained in:
parent
9c2b8f8b31
commit
0c9c9fb35f
|
@ -91,8 +91,8 @@ void con_free(Con *con) {
|
||||||
FREE(mark->name);
|
FREE(mark->name);
|
||||||
FREE(mark);
|
FREE(mark);
|
||||||
}
|
}
|
||||||
free(con);
|
|
||||||
DLOG("con %p freed\n", con);
|
DLOG("con %p freed\n", con);
|
||||||
|
free(con);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _con_attach(Con *con, Con *parent, Con *previous, bool ignore_focus) {
|
static void _con_attach(Con *con, Con *parent, Con *previous, bool ignore_focus) {
|
||||||
|
|
Loading…
Reference in New Issue