Alan Coopersmith ffcae9381f Avoid leaking pixel memory if DUMMYScreenInit fails
Resolves issues reported by Oracle Parfait static analyzer:

Error: Memory leak
   Memory leak [memory-leak] (CWE 401):
      Memory leak of pointer pixels allocated with malloc((pScrn->videoRam * 1024))
        at line 803 of dummy_driver.c in function 'DUMMYScreenInit'.
          pixels allocated at line 790 with malloc((pScrn->videoRam * 1024))
   Memory leak [memory-leak] (CWE 401):
      Memory leak of pointer pixels allocated with malloc((pScrn->videoRam * 1024))
        at line 805 of dummy_driver.c in function 'DUMMYScreenInit'.
          pixels allocated at line 790 with malloc((pScrn->videoRam * 1024))

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-19 20:12:50 -07:00
2017-01-26 14:00:22 +10:00
2022-04-05 10:16:22 -07:00
2018-11-18 12:27:58 -08:00
2022-01-22 10:18:32 -08:00

xf86-video-dummy - virtual/offscreen frame buffer driver for the Xorg X server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.x.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/driver/xf86-video-dummy

Please submit bug reports and requests to merge patches there.

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

Description
No description provided
Readme 319 KiB
Languages
C 84.1%
Makefile 8.1%
M4 6.9%
Shell 0.9%