Commit 4ed36e38 authored by Walter Harms's avatar Walter Harms Committed by Hans de Goede

fix: doGetScreenResources() info: redundant null check on calling free()

janitorial patch: remove some unneeded if() before free()
Signed-off-by: default avatarHans de Goede <>
parent 44374369
......@@ -127,8 +127,8 @@ doGetScreenResources (Display *dpy, Window window, int poll)
xrsr = (XRRScreenResources *) Xmalloc(rbytes);
wire_names = (char *) Xmalloc (rep.nbytesNames);
if (xrsr == NULL || wire_names == NULL) {
if (xrsr) Xfree (xrsr);
if (wire_names) Xfree (wire_names);
Xfree (xrsr);
Xfree (wire_names);
_XEatDataWords (dpy, rep.length);
UnlockDisplay (dpy);
SyncHandle ();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment