Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
976d4237
Commit
976d4237
authored
Oct 09, 2008
by
hartman
Browse files
Fix potential memleak (CID 196)
w00t, my first CID fix :D
parent
79aa7396
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/input.c
View file @
976d4237
...
...
@@ -257,7 +257,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
psz_parser
=
val
.
psz_string
;
while
(
(
psz_start
=
strchr
(
psz_parser
,
'{'
)
)
)
{
seekpoint_t
*
p_seekpoint
=
vlc_seekpoint_New
()
;
seekpoint_t
*
p_seekpoint
;
char
backup
;
psz_start
++
;
psz_end
=
strchr
(
psz_start
,
'}'
);
...
...
@@ -266,6 +266,8 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
backup
=
*
psz_parser
;
*
psz_parser
=
0
;
*
psz_end
=
','
;
p_seekpoint
=
vlc_seekpoint_New
();
while
(
(
psz_end
=
strchr
(
psz_start
,
','
)
)
)
{
*
psz_end
=
0
;
...
...
Write
Preview
Supports
Markdown
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