From: Emil Velikov Date: Sat, 17 May 2014 14:04:59 +0000 (+0100) Subject: pipe-loader: note that we leak pipe_loader_drm_device->base->driver_name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f00611d780df85cc20474b6695754e36a6c9228;p=mesa.git 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 --- diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c index a3fc186aaa2..2e5b74bacdc 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; }