[Mesa-dev] [PATCH 01/26] pipe-loader: note that we leak pipe_loader_drm_device->base->driver_name

Emil Velikov emil.l.velikov at gmail.com
Thu Jun 12 12:56:21 PDT 2014


The string is malloc'd (strdup) in loader_get_driver_for_fd().

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index a3fc186..2e5b74b 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -256,6 +256,7 @@ pipe_loader_drm_release(struct pipe_loader_device **dev)
       util_dl_close(ddev->lib);
 
    close(ddev->fd);
+   /* XXX: Free ddev->base.driver_name - strdup at loader_get_driver_for_fd */
    FREE(ddev);
    *dev = NULL;
 }
-- 
1.9.3



More information about the mesa-dev mailing list