drm: Branch 'master'
[email protected] (GitLab Mirror) Fri, 3 May 2019 11:48:51 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
xf86drmMode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit b39377d66ac04363f3c47ba5870c5ef71a95f5b8 Author: Seung-Woo Kim <[email protected]> Date: Mon Apr 29 18:10:52 2019 +0900 xf86drm: Fix possible memory leak with drmModeGetPropertyPtr() In drmModeGetPropertyPtr(), from upper error path, it calls free but with just next error path, it does not call. Fix the possible memory leak. Signed-off-by: Seung-Woo Kim <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> diff --git a/xf86drmMode.c b/xf86drmMode.c index c878d9ea..207d7be9 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -650,7 +650,7 @@ drm_public drmModePropertyPtr drmModeGetProperty(int fd, uint32_t property_id) } if (!(r = drmMalloc(sizeof(*r)))) - return NULL; + goto err_allocs; r->prop_id = prop.prop_id; r->count_values = prop.count_values; --