From 0c9c9fb35fab76836f1d5910d08c0dc4713f2050 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Tue, 28 Apr 2020 21:41:13 +0200 Subject: [PATCH] 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. --- src/con.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/con.c b/src/con.c index d9a79221..c2da3cbb 100644 --- a/src/con.c +++ b/src/con.c @@ -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) {