summaryrefslogtreecommitdiff
path: root/mi/micmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/micmap.c')
-rw-r--r--mi/micmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mi/micmap.c b/mi/micmap.c
index 41e03006e..7448ef8fd 100644
--- a/mi/micmap.c
+++ b/mi/micmap.c
@@ -564,6 +564,8 @@ miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
{
vid = malloc(nvtype * sizeof (VisualID));
if (!vid) {
+ free(depth);
+ free(visual);
free(preferredCVCs);
return FALSE;
}