Skip to content
  • Daniel Stone's avatar
    tests: Don't leak args when skipping tests · 213195c4
    Daniel Stone authored
    
    
    We treat the argv we pass into the compositor as its to mangle, just as
    it is free to do so for POSIX argv. To support this, we stash argv away
    and free the saved copy later so as to not leak.
    
    This works perfectly, except when we never call the compositor at all,
    and have no saved array to free. Make sure we free the args in this
    case, which can be seen as a leak of any generated args when a test
    skips on preflight checks, e.g. drm-smoke when not running in CI.
    
    Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
    213195c4
Loading