Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Volkov
xserver
Commits
49abff79
Commit
49abff79
authored
Apr 07, 2006
by
Adam Jackson
💣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coverity #818: Avoid memory leak on error path.
parent
bda29212
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ChangeLog
ChangeLog
+5
-0
hw/xfree86/dixmods/extmod/xf86vmode.c
hw/xfree86/dixmods/extmod/xf86vmode.c
+4
-2
No files found.
ChangeLog
View file @
49abff79
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/dixmods/extmod/xf86vmode.c:
Coverity #818: Avoid memory leak on error path.
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* GL/glx/single2.c:
...
...
hw/xfree86/dixmods/extmod/xf86vmode.c
View file @
49abff79
...
...
@@ -29,7 +29,7 @@ or other dealings in this Software without prior written authorization
from Kaleb S. KEITHLEY
*/
/* $XdotOrg: xserver/xorg/hw/xfree86/dixmods/extmod/xf86vmode.c,v 1.
8 2005/07/16 03:49:58 kem
Exp $ */
/* $XdotOrg: xserver/xorg/hw/xfree86/dixmods/extmod/xf86vmode.c,v 1.
9 2006/02/10 22:00:24 anholt
Exp $ */
/* $Xorg: xf86vmode.c,v 1.3 2000/08/17 19:47:59 cpqbld Exp $ */
/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
...
...
@@ -1589,8 +1589,10 @@ ProcXF86VidModeGetGammaRamp(ClientPtr client)
return
BadAlloc
;
if
(
!
VidModeGetGammaRamp
(
stuff
->
screen
,
stuff
->
size
,
ramp
,
ramp
+
length
,
ramp
+
(
length
*
2
)))
ramp
,
ramp
+
length
,
ramp
+
(
length
*
2
)))
{
xfree
(
ramp
);
return
BadValue
;
}
}
rep
.
type
=
X_Reply
;
...
...
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