projects
/
platform
/
upstream
/
xdpyinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4001e8
)
Coverity #749: print_XF86VidMode_info: Returned without freeing storage "modelines"
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:21:56 +0000
(13:21 -0700)
committer
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:21:56 +0000
(13:21 -0700)
xdpyinfo.c
patch
|
blob
|
history
diff --git
a/xdpyinfo.c
b/xdpyinfo.c
index
886d7a1
..
5715590
100644
(file)
--- 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))