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
3f7a8904
Commit
3f7a8904
authored
Oct 10, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleaks.
parent
74d28b3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/demux/playlist/sgimb.c
modules/demux/playlist/sgimb.c
+8
-0
No files found.
modules/demux/playlist/sgimb.c
View file @
3f7a8904
...
...
@@ -211,6 +211,7 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
if
(
!
strncasecmp
(
psz_bol
,
"rtsp://"
,
sizeof
(
"rtsp://"
)
-
1
)
)
{
/* We found the link, it was inside a sgiQTFileBegin */
free
(
p_sys
->
psz_uri
);
p_sys
->
psz_uri
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"Stream=
\"
"
,
sizeof
(
"Stream=
\"
"
)
-
1
)
)
...
...
@@ -230,31 +231,37 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
psz_bol
[
2
]
=
's'
;
psz_bol
[
3
]
=
'p'
;
}
free
(
p_sys
->
psz_uri
);
p_sys
->
psz_uri
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiNameServerHost="
,
sizeof
(
"sgiNameServerHost="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiNameServerHost="
)
-
1
;
free
(
p_sys
->
psz_server
);
p_sys
->
psz_server
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiMovieName="
,
sizeof
(
"sgiMovieName="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiMovieName="
)
-
1
;
free
(
p_sys
->
psz_location
);
p_sys
->
psz_location
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiUserAccount="
,
sizeof
(
"sgiUserAccount="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiUserAccount="
)
-
1
;
free
(
p_sys
->
psz_user
);
p_sys
->
psz_user
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiUserPassword="
,
sizeof
(
"sgiUserPassword="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiUserPassword="
)
-
1
;
free
(
p_sys
->
psz_password
);
p_sys
->
psz_password
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiShowingName="
,
sizeof
(
"sgiShowingName="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiShowingName="
)
-
1
;
free
(
p_sys
->
psz_name
);
p_sys
->
psz_name
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiFormatName="
,
sizeof
(
"sgiFormatName="
)
-
1
)
)
...
...
@@ -266,6 +273,7 @@ static int ParseLine ( demux_t *p_demux, char *psz_line )
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiMulticastAddress="
,
sizeof
(
"sgiMulticastAddress="
)
-
1
)
)
{
psz_bol
+=
sizeof
(
"sgiMulticastAddress="
)
-
1
;
free
(
p_sys
->
psz_mcast_ip
);
p_sys
->
psz_mcast_ip
=
strdup
(
psz_bol
);
}
else
if
(
!
strncasecmp
(
psz_bol
,
"sgiMulticastPort="
,
sizeof
(
"sgiMulticastPort="
)
-
1
)
)
...
...
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