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.
next
Orestis Floros 2020-04-28 21:41:13 +02:00 committed by GitHub
parent 9c2b8f8b31
commit 0c9c9fb35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -91,8 +91,8 @@ void con_free(Con *con) {
FREE(mark->name);
FREE(mark);
}
free(con);
DLOG("con %p freed\n", con);
free(con);
}
static void _con_attach(Con *con, Con *parent, Con *previous, bool ignore_focus) {