diff --git a/src/r128_output.c b/src/r128_output.c index 2c00979..fab6fe9 100644 --- a/src/r128_output.c +++ b/src/r128_output.c @@ -556,7 +556,10 @@ Bool R128SetupConnectors(ScrnInfoPtr pScrn) output = R128OutputCreate(pScrn, "DVI-%d", --num_dvi); } - if (!output) return FALSE; + if (!output) { + free(r128_output); + return FALSE; + } output->interlaceAllowed = TRUE; output->doubleScanAllowed = TRUE; output->driver_private = r128_output;