progs/xdemos: Fix memory leak in pbinfo.c.
This commit is contained in:
parent
e0857962b9
commit
e19195c185
|
@ -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…
Reference in New Issue