Skip to content
  • Alan Coopersmith's avatar
    rrproperty.c: free newly allocated prop in more error paths · 1eb7be86
    Alan Coopersmith authored
    
    
    Reported by parfait 1.0:
    
    Error: Memory leak (CWE 401)
       Memory leak of pointer 'prop' allocated with RRCreateOutputProperty(property)
            at line 220 of randr/rrproperty.c in function 'RRChangeOutputProperty'.
              'prop' allocated at line 154 with RRCreateOutputProperty(property).
              prop leaks when pending != 0 at line 160.
    Error: Memory leak (CWE 401)
       Memory leak of pointer 'prop' allocated with RRCreateOutputProperty(property)
            at line 346 of randr/rrproperty.c in function 'RRConfigureOutputProperty'.
              'prop' allocated at line 334 with RRCreateOutputProperty(property).
            at line 350 of randr/rrproperty.c in function 'RRConfigureOutputProperty'.
              'prop' allocated at line 334 with RRCreateOutputProperty(property).
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
    1eb7be86