From: Orestis Floros Date: Sat, 16 Sep 2017 22:14:47 +0000 (+0300) Subject: Fix use of err after it is freed X-Git-Tag: 4.14.1~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=395dc7bebd839581440fbb0b086aa1312009d71c;p=i3%2Fi3 Fix use of err after it is freed --- diff --git a/src/randr.c b/src/randr.c index bc791696..88cad7c5 100644 --- a/src/randr.c +++ b/src/randr.c @@ -1048,8 +1048,8 @@ void randr_init(int *event_base, const bool disable_randr15) { xcb_randr_query_version_reply( conn, xcb_randr_query_version(conn, XCB_RANDR_MAJOR_VERSION, XCB_RANDR_MINOR_VERSION), &err); if (err != NULL) { - free(err); ELOG("Could not query RandR version: X11 error code %d\n", err->error_code); + free(err); fallback_to_root_output(); return; }