mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Always call drmModeFreeProperty after drmModeGetProperty
We were not doing so in all cases, leaking memory allocated by the latter. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
84aad09f18
commit
f6b39bcd45
@@ -1891,8 +1891,8 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
|
||||
drmModeFreeProperty(props);
|
||||
break;
|
||||
}
|
||||
drmModeFreeProperty(props);
|
||||
}
|
||||
drmModeFreeProperty(props);
|
||||
}
|
||||
|
||||
kencoders = calloc(sizeof(drmModeEncoderPtr), koutput->count_encoders);
|
||||
@@ -1986,8 +1986,8 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
|
||||
drmModeFreeProperty(props);
|
||||
break;
|
||||
}
|
||||
drmModeFreeProperty(props);
|
||||
}
|
||||
drmModeFreeProperty(props);
|
||||
}
|
||||
|
||||
if (dynamic) {
|
||||
|
||||
Reference in New Issue
Block a user