Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6b908430
Commit
6b908430
authored
Jul 31, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleaks in stream output.
parent
01e3fc39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/stream_out/standard.c
modules/stream_out/standard.c
+8
-1
No files found.
modules/stream_out/standard.c
View file @
6b908430
...
@@ -217,7 +217,11 @@ static int Open( vlc_object_t *p_this )
...
@@ -217,7 +217,11 @@ static int Open( vlc_object_t *p_this )
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
p_sys
=
p_stream
->
p_sys
=
malloc
(
sizeof
(
sout_stream_sys_t
)
);
p_sys
=
p_stream
->
p_sys
=
malloc
(
sizeof
(
sout_stream_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
if
(
!
p_sys
)
{
free
(
psz_url
);
return
VLC_ENOMEM
;
}
p_stream
->
p_sys
->
p_session
=
NULL
;
p_stream
->
p_sys
->
p_session
=
NULL
;
msg_Dbg
(
p_this
,
"creating `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_url
);
msg_Dbg
(
p_this
,
"creating `%s/%s://%s'"
,
psz_access
,
psz_mux
,
psz_url
);
...
@@ -278,6 +282,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -278,6 +282,7 @@ static int Open( vlc_object_t *p_this )
else
else
{
{
msg_Err
(
p_stream
,
"no access _and_ no muxer (fatal error)"
);
msg_Err
(
p_stream
,
"no access _and_ no muxer (fatal error)"
);
free
(
psz_url
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -370,6 +375,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -370,6 +375,7 @@ static int Open( vlc_object_t *p_this )
psz_access
,
psz_mux
,
psz_url
);
psz_access
,
psz_mux
,
psz_url
);
free
(
psz_access
);
free
(
psz_access
);
free
(
psz_mux
);
free
(
psz_mux
);
free
(
psz_url
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -385,6 +391,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -385,6 +391,7 @@ static int Open( vlc_object_t *p_this )
sout_AccessOutDelete
(
p_access
);
sout_AccessOutDelete
(
p_access
);
free
(
psz_access
);
free
(
psz_access
);
free
(
psz_mux
);
free
(
psz_mux
);
free
(
psz_url
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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