Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
virgl-es
mesa
Commits
721954c3
Commit
721954c3
authored
Aug 25, 2010
by
Vinson Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvfx: Set pointer to NULL after free.
Guard against potential use after free.
parent
dc275157
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/gallium/drivers/nvfx/nvfx_fragprog.c
src/gallium/drivers/nvfx/nvfx_fragprog.c
+3
-1
No files found.
src/gallium/drivers/nvfx/nvfx_fragprog.c
View file @
721954c3
...
...
@@ -996,8 +996,10 @@ nvfx_fragprog_prepare(struct nvfx_context* nvfx, struct nvfx_fpc *fpc)
return
TRUE
;
out_err:
if
(
fpc
->
r_temp
)
if
(
fpc
->
r_temp
)
{
FREE
(
fpc
->
r_temp
);
fpc
->
r_temp
=
NULL
;
}
tgsi_parse_free
(
&
p
);
return
FALSE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment