Skip to content
Commit d42fa30d authored by Leandro Ribeiro's avatar Leandro Ribeiro Committed by Daniel Stone
Browse files

launcher: fix leak in launcher_weston_launch_connect()



Leak found running drm-smoke-test with ASan.

Do not forget to free the launcher before returning when we can't open
the launcher fd. Also, just set 'out = launcher' after all error paths,
otherwise we give the caller a stale pointer.

Signed-off-by: default avatarLeandro Ribeiro <leandro.ribeiro@collabora.com>
parent bd4f250d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment