Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
b598703a
Commit
b598703a
authored
Jan 17, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double free after stream_out creation failed
Also fix a use after free
parent
0f5ff88e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+5
-1
No files found.
src/stream_output/stream_output.c
View file @
b598703a
...
@@ -124,8 +124,8 @@ sout_instance_t *__sout_NewInstance( vlc_object_t *p_parent, const char *psz_des
...
@@ -124,8 +124,8 @@ sout_instance_t *__sout_NewInstance( vlc_object_t *p_parent, const char *psz_des
return
p_sout
;
return
p_sout
;
}
}
free
(
psz_chain
);
msg_Err
(
p_sout
,
"stream chain failed for `%s'"
,
psz_chain
);
msg_Err
(
p_sout
,
"stream chain failed for `%s'"
,
psz_chain
);
free
(
psz_chain
);
FREENULL
(
p_sout
->
psz_sout
);
FREENULL
(
p_sout
->
psz_sout
);
...
@@ -859,6 +859,10 @@ static sout_stream_t *sout_StreamNew( sout_instance_t *p_sout, char *psz_name,
...
@@ -859,6 +859,10 @@ static sout_stream_t *sout_StreamNew( sout_instance_t *p_sout, char *psz_name,
if
(
!
p_stream
->
p_module
)
if
(
!
p_stream
->
p_module
)
{
{
/* those must be freed by the caller if creation failed */
p_stream
->
psz_name
=
NULL
;
p_stream
->
p_cfg
=
NULL
;
sout_StreamDelete
(
p_stream
);
sout_StreamDelete
(
p_stream
);
return
NULL
;
return
NULL
;
}
}
...
...
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