Commit 1edf354b authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

vtest: fix some leaks on error

Found thanks to llvm scan-build.
Signed-off-by: default avatarMarc-André Lureau <>
parent 1b736c54
......@@ -168,11 +168,13 @@ int vtest_send_caps(void)
hdr_buf[1] = 1;
ret = vtest_block_write(renderer.out_fd, hdr_buf, 8);
if (ret < 0)
return ret;
goto end;
vtest_block_write(renderer.out_fd, caps_buf, max_size);
if (ret < 0)
return ret;
goto end;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment