Skip to content
  • Alan Coopersmith's avatar
    rrproviderproperty.c: free newly allocated prop in more error paths · 42e655de
    Alan Coopersmith authored
    
    
    Reported by parfait 1.0:
    
    Error: Memory leak (CWE 401)
       Memory leak of pointer 'prop' allocated with RRCreateProviderProperty(property)
            at line 221 of randr/rrproviderproperty.c in function 'RRChangeProviderProperty'.
              'prop' allocated at line 155 with RRCreateProviderProperty(property).
              prop leaks when pending != 0 at line 161.
    
    Error: Memory leak (CWE 401)
       Memory leak of pointer 'prop' allocated with RRCreateProviderProperty(property)
            at line 345 of randr/rrproviderproperty.c in function 'RRConfigureProviderProperty'.
              'prop' allocated at line 333 with RRCreateProviderProperty(property).
            at line 349 of randr/rrproviderproperty.c in function 'RRConfigureProviderProperty'.
              'prop' allocated at line 333 with RRCreateProviderProperty(property).
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
    42e655de