From: Alan Coopersmith Date: Tue, 20 Mar 2007 20:21:56 +0000 (-0700) Subject: Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines" X-Git-Tag: xdpyinfo-1.0.2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce6709132a322e82e915b761c0ced1bc418095ea;p=platform%2Fupstream%2Fxdpyinfo.git Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines" --- 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))