pipe-loader: Free driver_name in error path
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 8 May 2018 03:40:47 +0000 (23:40 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Wed, 9 May 2018 01:35:07 +0000 (21:35 -0400)
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c

index b6be1b4f1270fe036ed180d39acd6f4f73621d49..3b959e53981919166baf4fdbee0971dada5b254d 100644 (file)
@@ -207,6 +207,7 @@ pipe_loader_drm_probe_fd(struct pipe_loader_device **dev, int fd)
    if (ddev->lib)
       util_dl_close(ddev->lib);
 #endif
+   FREE(ddev->base.driver_name);
    FREE(ddev);
    return false;
 }