mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nouveau: don't leak dec struct on error
This one path doesn't goto fail, so it seems to leak dec. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
32a8b2cf54
commit
19f6e80a1e
1 changed files with 1 additions and 1 deletions
|
|
@ -553,7 +553,7 @@ nouveau_create_decoder(struct pipe_context *context,
|
|||
&mpeg);
|
||||
if (ret < 0) {
|
||||
debug_printf("Creation failed: %s (%i)\n", strerror(-ret), ret);
|
||||
return NULL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
dec->mpeg = mpeg;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue