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
7d7a42b8
Commit
7d7a42b8
authored
Oct 06, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleak (CID 67) and don't use 0 instead of NULL
parent
f2157f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+4
-2
No files found.
modules/demux/playlist/b4s.c
View file @
7d7a42b8
...
@@ -98,7 +98,7 @@ static int Demux( demux_t *p_demux )
...
@@ -98,7 +98,7 @@ static int Demux( demux_t *p_demux )
psz_elname
=
stream_ReadLine
(
p_demux
->
s
);
psz_elname
=
stream_ReadLine
(
p_demux
->
s
);
free
(
psz_elname
);
free
(
psz_elname
);
psz_elname
=
0
;
psz_elname
=
NULL
;
p_xml_reader
=
xml_ReaderCreate
(
p_xml
,
p_demux
->
s
);
p_xml_reader
=
xml_ReaderCreate
(
p_xml
,
p_demux
->
s
);
if
(
!
p_xml_reader
)
return
-
1
;
if
(
!
p_xml_reader
)
return
-
1
;
...
@@ -142,7 +142,7 @@ static int Demux( demux_t *p_demux )
...
@@ -142,7 +142,7 @@ static int Demux( demux_t *p_demux )
free
(
psz_elname
);
free
(
psz_elname
);
return
-
1
;
return
-
1
;
}
}
free
(
psz_elname
);
psz_elname
=
0
;
free
(
psz_elname
);
psz_elname
=
NULL
;
// Read the attributes
// Read the attributes
while
(
xml_ReaderNextAttr
(
p_xml_reader
)
==
VLC_SUCCESS
)
while
(
xml_ReaderNextAttr
(
p_xml_reader
)
==
VLC_SUCCESS
)
...
@@ -294,6 +294,8 @@ static int Demux( demux_t *p_demux )
...
@@ -294,6 +294,8 @@ static int Demux( demux_t *p_demux )
msg_Warn
(
p_demux
,
"error while parsing data"
);
msg_Warn
(
p_demux
,
"error while parsing data"
);
}
}
free
(
psz_elname
);
HANDLE_PLAY_AND_RELEASE
;
HANDLE_PLAY_AND_RELEASE
;
return
0
;
/* Needed for correct operation of go back */
return
0
;
/* Needed for correct operation of go back */
}
}
...
...
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