diff options
author | Dave Airlie <[email protected]> | 2014-09-02 09:07:55 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-09-02 10:08:58 +1000 |
commit | 19f6e80a1eaf055b13ba744d5e18af8c2984cc1d (patch) | |
tree | 5b7b2d4047c697103659782ccaad794aa7fd427b /src/gallium | |
parent | 32a8b2cf548ae04374b6497a0c4b1c7f1a4339ec (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nouveau/nouveau_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c index 8795c9d3bc2..bd0462542f3 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.c +++ b/src/gallium/drivers/nouveau/nouveau_video.c @@ -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; |