Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines"
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:21:56 +0000 (13:21 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:21:56 +0000 (13:21 -0700)
xdpyinfo.c

index 886d7a1..5715590 100644 (file)
@@ -800,6 +800,7 @@ print_XF86VidMode_info(Display *dpy, char *extname)
         if (modelines[i]->flags & V_DBLSCAN)   printf(" doublescan");
         printf("\n");
       }
+      XFree(modelines);
 
       if (!XF86VidModeGetModeLine(dpy, DefaultScreen(dpy),
                                  &dotclock, &modeline))