summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_video.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <[email protected]>2011-12-19 10:06:58 +0100
committerChristoph Bumiller <[email protected]>2011-12-23 16:21:25 +0100
commitebe7c687ceed4e5ca704b325aac6b91791d394b0 (patch)
tree6217b7407c2cf60a1ed780cbb7a5c67411f9c10c /src/gallium/drivers/nouveau/nouveau_video.c
parent2eafd07323891944b9c012a17359cd5f07a87890 (diff)
nouveau: Fix bugs in nouveau_video_buffer
Double free and array overflow, even if only 2 members are used the last one needs to be set to NULL explicitly. Signed-off-by: Maarten Lankhorst <[email protected]
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_video.c')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_video.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c
index 162e1aa89a6..a442537c320 100644
--- a/src/gallium/drivers/nouveau/nouveau_video.c
+++ b/src/gallium/drivers/nouveau/nouveau_video.c
@@ -835,7 +835,6 @@ nouveau_video_buffer_create(struct pipe_context *pipe,
error:
nouveau_video_buffer_destroy(&buffer->base);
- FREE(buffer);
return NULL;
}