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
00d63f8f
Commit
00d63f8f
authored
Oct 14, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning (potential memleak and uneeded message).
parent
4fb56a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/misc/dummy/decoder.c
modules/misc/dummy/decoder.c
+5
-3
No files found.
modules/misc/dummy/decoder.c
View file @
00d63f8f
...
...
@@ -78,8 +78,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump )
if
(
(
p_dec
->
p_sys
=
p_sys
=
(
decoder_sys_t
*
)
malloc
(
sizeof
(
decoder_sys_t
))
)
==
NULL
)
{
msg_Err
(
p_dec
,
"out of memory"
);
return
VLC_EGENERIC
;
return
VLC_ENOMEM
;
}
snprintf
(
psz_file
,
sizeof
(
psz_file
),
"stream.%p"
,
p_dec
);
...
...
@@ -98,6 +97,7 @@ static int OpenDecoderCommon( vlc_object_t *p_this, bool b_force_dump )
if
(
p_sys
->
i_fd
==
-
1
)
{
msg_Err
(
p_dec
,
"cannot create `%s'"
,
psz_file
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -164,8 +164,10 @@ void CloseDecoder ( vlc_object_t *p_this )
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
#ifndef UNDER_CE
if
(
p_sys
->
i_fd
>=
0
)
close
(
p_sys
->
i_fd
);
if
(
p_sys
->
i_fd
>=
0
)
close
(
p_sys
->
i_fd
);
#endif
free
(
p_sys
);
}
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