Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f759a373
Commit
f759a373
authored
Jul 01, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rss: fix a memleak (double strdup) and ad a missing const.
parent
dcbb433f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_filter/rss.c
modules/video_filter/rss.c
+4
-4
No files found.
modules/video_filter/rss.c
View file @
f759a373
...
...
@@ -630,12 +630,12 @@ static picture_t *LoadImage( filter_t *p_filter, const char *psz_url )
* remove all ' ' '\t' '\n' '\r' characters from the begining and end of the
* string.
***************************************************************************/
static
char
*
removeWhiteChars
(
char
*
psz_src
)
static
char
*
removeWhiteChars
(
c
onst
c
har
*
psz_src
)
{
char
*
psz_src2
=
strdup
(
psz_src
);
char
*
psz_clean
=
strdup
(
psz_src2
);
char
*
psz_clean2
;
char
*
psz_src2
,
*
psz_clean
,
*
psz_clean2
;
psz_src2
=
psz_clean
=
strdup
(
psz_src
);
int
i
;
while
(
(
*
psz_clean
==
' '
||
*
psz_clean
==
'\t'
||
*
psz_clean
==
'\n'
||
*
psz_clean
==
'\r'
)
&&
*
psz_clean
!=
'\0'
)
...
...
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