pipe-loader: note that we leak pipe_loader_drm_device->base->driver_name
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 17 May 2014 14:04:59 +0000 (15:04 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 19 Jun 2014 11:37:14 +0000 (12:37 +0100)
The string is malloc'd (strdup) in loader_get_driver_for_fd().

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c

index a3fc186aaa2712d0d97b65207f07dda950e43b2f..2e5b74bacdc46e19ed399cbaeea59f371eb36988 100644 (file)
@@ -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;
 }