Commit 45c83a26 authored by Daniel Martin's avatar Daniel Martin Committed by Adam Jackson

modesetting: Free output_ids in drmmode_set_mode_major()

We calloc() output_ids. Let's free() it, too.
Signed-off-by: 's avatarDaniel Martin <consume.noise@gmail.com>
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: 's avatarAlex Deucher <alexander.deucher@amd.com>
parent 2674d424
......@@ -340,7 +340,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
int saved_x, saved_y;
Rotation saved_rotation;
DisplayModeRec saved_mode;
uint32_t *output_ids;
uint32_t *output_ids = NULL;
int output_count = 0;
Bool ret = TRUE;
int i;
......@@ -468,6 +468,8 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
crtc->active = TRUE;
#endif
free(output_ids);
return ret;
}
......
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