xserver-multidpi/composite
Alan Coopersmith 48b9465120 Stop leaking overlayWin in PanoramiXCompositeGetOverlayWindow error paths
Found by parfait 1.1 code analyzer:

Error: Memory leak (CWE 401)
   Memory leak of pointer 'overlayWin' allocated with malloc(72)
        at line 806 of composite/compext.c in function 'PanoramiXCompositeGetOverlayWindow'.
          pointer allocated at line 794 with malloc(72).
          <unknown> leaks when rc != 0 at line 804.
        at line 816 of composite/compext.c in function 'PanoramiXCompositeGetOverlayWindow'.
          pointer allocated at line 794 with malloc(72).
          <unknown> leaks when pOc == NULL at line 815.
        at line 825 of composite/compext.c in function 'PanoramiXCompositeGetOverlayWindow'.
          pointer allocated at line 794 with malloc(72).
          <unknown> leaks when cs->pOverlayWin == NULL at line 822
              and compCreateOverlayWindow(pScreen) == 0 at line 823.
        at line 834 of composite/compext.c in function 'PanoramiXCompositeGetOverlayWindow'.
          pointer allocated at line 794 with malloc(72).
          <unknown> leaks when rc != 0 at line 832.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-02-05 18:30:13 -08:00
..
compalloc.c dix/render: consolidate window format matching code. 2012-06-28 10:43:35 -07:00
compext.c Stop leaking overlayWin in PanoramiXCompositeGetOverlayWindow error paths 2013-02-05 18:30:13 -08:00
compinit.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
compint.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
compositeext.h Export CompositeClientWindowType 2012-04-19 15:34:32 -05:00
compoverlay.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
compwindow.c Fix more poorly indented/wrapped comments & code 2012-07-09 19:14:50 -07:00
Makefile.am Export CompositeRegisterAlternateVisuals. 2009-04-27 13:29:40 -07:00