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
558e2336
Commit
558e2336
authored
Aug 20, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleaks and one potential memleak (and move a test where it might be)
parent
381f286d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
modules/access_output/shout.c
modules/access_output/shout.c
+12
-4
No files found.
modules/access_output/shout.c
View file @
558e2336
...
...
@@ -183,10 +183,6 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
psz_accessname
=
psz_parser
=
strdup
(
p_access
->
psz_path
);
if
(
!
psz_parser
)
return
VLC_ENOMEM
;
if
(
!
p_access
->
psz_path
)
{
msg_Err
(
p_access
,
...
...
@@ -194,6 +190,10 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
psz_accessname
=
psz_parser
=
strdup
(
p_access
->
psz_path
);
if
(
!
psz_parser
)
return
VLC_ENOMEM
;
/* Parse connection data user:pwd@host:port/mountpoint */
psz_user
=
psz_parser
;
while
(
psz_parser
[
0
]
&&
psz_parser
[
0
]
!=
':'
)
psz_parser
++
;
...
...
@@ -262,6 +262,10 @@ static int Open( vlc_object_t *p_this )
psz_host
,
i_port
,
psz_mount
);
free
(
p_access
->
p_sys
);
free
(
psz_accessname
);
free
(
psz_name
);
free
(
psz_description
);
free
(
psz_genre
);
free
(
psz_url
);
return
VLC_EGENERIC
;
}
...
...
@@ -293,6 +297,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_ret
!=
SHOUTERR_SUCCESS
)
{
msg_Err
(
p_access
,
"failed to set the information about the bitrate"
);
free
(
val
.
psz_string
);
free
(
p_access
->
p_sys
);
free
(
psz_accessname
);
return
VLC_EGENERIC
;
...
...
@@ -318,6 +323,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_ret
!=
SHOUTERR_SUCCESS
)
{
msg_Err
(
p_access
,
"failed to set the information about the samplerate"
);
free
(
val
.
psz_string
);
free
(
p_access
->
p_sys
);
free
(
psz_accessname
);
return
VLC_EGENERIC
;
...
...
@@ -333,6 +339,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_ret
!=
SHOUTERR_SUCCESS
)
{
msg_Err
(
p_access
,
"failed to set the information about the number of channels"
);
free
(
val
.
psz_string
);
free
(
p_access
->
p_sys
);
free
(
psz_accessname
);
return
VLC_EGENERIC
;
...
...
@@ -348,6 +355,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_ret
!=
SHOUTERR_SUCCESS
)
{
msg_Err
(
p_access
,
"failed to set the information about Ogg Vorbis quality"
);
free
(
val
.
psz_string
);
free
(
p_access
->
p_sys
);
free
(
psz_accessname
);
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