summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:21:56 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:21:56 -0700
commitce6709132a322e82e915b761c0ced1bc418095ea (patch)
tree03912bfa16de15e7903ee898af950151a89c53ce /xdpyinfo.c
parentf4001e881a9f5d57dd99326d4f501737a0ded6e6 (diff)
Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines"
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c1
1 files changed, 1 insertions, 0 deletions
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))