Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
453d71b9
Commit
453d71b9
authored
Aug 19, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Avoid invalid memory access when create_console_input fails.
parent
0f133aed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
console.c
server/console.c
+3
-1
No files found.
server/console.c
View file @
453d71b9
...
@@ -330,6 +330,7 @@ static struct object *create_console_input( struct thread* renderer, int fd )
...
@@ -330,6 +330,7 @@ static struct object *create_console_input( struct thread* renderer, int fd )
if
(
!
console_input
->
history
||
(
renderer
&&
!
console_input
->
evt
)
||
!
console_input
->
event
)
if
(
!
console_input
->
history
||
(
renderer
&&
!
console_input
->
evt
)
||
!
console_input
->
event
)
{
{
if
(
fd
!=
-
1
)
close
(
fd
);
if
(
fd
!=
-
1
)
close
(
fd
);
console_input
->
history_size
=
0
;
release_object
(
console_input
);
release_object
(
console_input
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1111,7 +1112,8 @@ static void console_input_destroy( struct object *obj )
...
@@ -1111,7 +1112,8 @@ static void console_input_destroy( struct object *obj )
release_object
(
console_in
->
evt
);
release_object
(
console_in
->
evt
);
console_in
->
evt
=
NULL
;
console_in
->
evt
=
NULL
;
}
}
release_object
(
console_in
->
event
);
if
(
console_in
->
event
)
release_object
(
console_in
->
event
);
if
(
console_in
->
fd
)
if
(
console_in
->
fd
)
release_object
(
console_in
->
fd
);
release_object
(
console_in
->
fd
);
...
...
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