mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
progs/xdemos: Fix memory leak in pbinfo.c.
This commit is contained in:
parent
e0857962b9
commit
e19195c185
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ PrintConfigs(Display *dpy, int screen, Bool horizFormat)
|
|||
fbConfigs = GetAllFBConfigs(dpy, screen, &nConfigs);
|
||||
if (!nConfigs || !fbConfigs) {
|
||||
printf("Error: glxGetFBConfigs failed\n");
|
||||
XFree(fbConfigs);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue