Mesa (master): pipe-loader: note that we leak pipe_loader_drm_device-> base->driver_name
Emil Velikov
evelikov at kemper.freedesktop.org
Thu Jun 19 11:47:18 UTC 2014
Module: Mesa
Branch: master
Commit: 7f00611d780df85cc20474b6695754e36a6c9228
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f00611d780df85cc20474b6695754e36a6c9228
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Sat May 17 15:04:59 2014 +0100
pipe-loader: note that we leak pipe_loader_drm_device->base->driver_name
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;
}
More information about the mesa-commit
mailing list