summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:34:30 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:34:30 -0700
commite7c95f92cb17eb971462074cfcc9b952bb466362 (patch)
treed4aa059d6fb349d3c3fab7e1fcb2f538c20946f5
parente411de3d660a5382e7cb8d31fa2fa1bc35823931 (diff)
Clear a couple more memory leaks found by Sun Studio dbx check -leaks
-rw-r--r--xdpyinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 039127d..d1dcbfb 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -776,6 +776,10 @@ print_XF86VidMode_info(Display *dpy, char *extname)
printf(" vsync range %d: %6.2f - %6.2f\n", i, monitor.vsync[i].lo,
monitor.vsync[i].hi);
}
+ XFree(monitor.vendor);
+ XFree(monitor.model);
+ XFree(monitor.hsync);
+ XFree(monitor.vsync);
if ((majorrev > 0) || (majorrev == 0 && minorrev > 5)) {
if (!XF86VidModeGetAllModeLines(dpy, DefaultScreen(dpy), &modecount,
@@ -863,6 +867,7 @@ print_XF86Misc_info(Display *dpy, char *extname)
return 0;
printf(" Mouse Settings- Device: %s, Type: ",
strlen(mouseinfo.device) == 0 ? "None": mouseinfo.device);
+ XFree(mouseinfo.device);
if (mouseinfo.type == MTYPE_XQUEUE)
printf("Xqueue\n");
else if (mouseinfo.type == MTYPE_OSMOUSE)