From ce6709132a322e82e915b761c0ced1bc418095ea Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 20 Mar 2007 13:21:56 -0700 Subject: Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines" --- xdpyinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xdpyinfo.c b/xdpyinfo.c index 886d7a1..5715590 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -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)) -- cgit v1.2.3