Commit 2a4d35b8 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

renderer: fix potential leak

Found thanks to llvm scan-build.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 8030fdbd
......@@ -5039,6 +5039,7 @@ void vrend_set_streamout_targets(struct vrend_context *ctx,
target = vrend_object_lookup(ctx->sub->object_hash, handles[i], VIRGL_OBJECT_STREAMOUT_TARGET);
if (!target) {
report_context_error(ctx, VIRGL_ERROR_CTX_ILLEGAL_HANDLE, handles[i]);
free(obj);
return;
}
vrend_so_target_reference(&obj->so_targets[i], target);
......
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