[Mesa-dev] [PATCH] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-08-21 Thread Aaron Watry
dlopen allocates a string on dlopen failure which is retrieved via dlerror. In order to free that string, you need to retrieve and then free it. In order to keep things legit the windows/other util_dl_error paths allocate and then copy their error message into a buffer as well. Signed-off-by: Aar

[Mesa-dev] [PATCH] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-08-21 Thread Aaron Watry
dlopen allocates a string on dlopen failure which is retrieved via dlerror. In order to free that string, you need to retrieve and then free it. In order to keep things legit the windows/other util_dl_error paths allocate and then copy their error message into a buffer as well. Signed-off-by: Aar