diff options
author | Vadym Shovkoplias <[email protected]> | 2017-12-01 17:08:53 +0200 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-12-01 15:15:30 +0000 |
commit | a1b4f1877f2ef7f0e1e10fdcef854391547f1018 (patch) | |
tree | 9f35579f31a178cd663c424fb3c909a04f1141fe /src/egl/drivers | |
parent | 29ee934331ce624ce4c30750ce0e8d4baa5eb2fa (diff) |
egl/x11: Remove unneeded free() on always null string
In this condition dri2_dpy->driver_name string always equals
NULL, so call to free() is useless
Signed-off-by: Vadym Shovkoplias <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index c49cb1fd8ef..8ede590bfab 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -704,7 +704,6 @@ dri2_x11_connect(struct dri2_egl_display *dri2_dpy) if (dri2_dpy->driver_name == NULL) { close(dri2_dpy->fd); - free(dri2_dpy->driver_name); free(connect); return EGL_FALSE; } |