progs/xdemos: Fix memory leak in pbinfo.c.

This commit is contained in:
Vinson Lee 2009-11-20 15:52:53 -08:00
parent e0857962b9
commit e19195c185
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}