modesetting: Free output_ids in drmmode_set_mode_major()
We calloc() output_ids. Let's free() it, too. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2674d42402
commit
45c83a266d
|
@ -340,7 +340,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
|
||||||
int saved_x, saved_y;
|
int saved_x, saved_y;
|
||||||
Rotation saved_rotation;
|
Rotation saved_rotation;
|
||||||
DisplayModeRec saved_mode;
|
DisplayModeRec saved_mode;
|
||||||
uint32_t *output_ids;
|
uint32_t *output_ids = NULL;
|
||||||
int output_count = 0;
|
int output_count = 0;
|
||||||
Bool ret = TRUE;
|
Bool ret = TRUE;
|
||||||
int i;
|
int i;
|
||||||
|
@ -468,6 +468,8 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
|
||||||
crtc->active = TRUE;
|
crtc->active = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
free(output_ids);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue