mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
modesetting: fix use after free.
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -778,11 +778,11 @@ drmmode_output_destroy(xf86OutputPtr output)
|
||||
drmModeFreeProperty(drmmode_output->props[i].mode_prop);
|
||||
free(drmmode_output->props[i].atoms);
|
||||
}
|
||||
free(drmmode_output->props);
|
||||
for (i = 0; i < drmmode_output->mode_output->count_encoders; i++) {
|
||||
drmModeFreeEncoder(drmmode_output->mode_encoders[i]);
|
||||
free(drmmode_output->mode_encoders);
|
||||
}
|
||||
free(drmmode_output->props);
|
||||
free(drmmode_output->mode_encoders);
|
||||
drmModeFreeConnector(drmmode_output->mode_output);
|
||||
free(drmmode_output);
|
||||
output->driver_private = NULL;
|
||||
|
||||
Reference in New Issue
Block a user