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
be687730
Commit
be687730
authored
Jul 31, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Potential memleak.
parent
be378fbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
modules/codec/fake.c
modules/codec/fake.c
+3
-0
modules/control/http/http.c
modules/control/http/http.c
+1
-0
modules/control/lirc.c
modules/control/lirc.c
+2
-0
No files found.
modules/codec/fake.c
View file @
be687730
...
...
@@ -154,6 +154,7 @@ static int OpenDecoder( vlc_object_t *p_this )
if(
!psz_file
)
{
msg_Err(
p_dec,
"specify a file with --fake-file=..."
)
;
free(
p_dec->p_sys
)
;
return
VLC_EGENERIC
;
}
var_AddCallback(
p_dec,
"fake-file"
,
FakeCallback,
p_dec
)
;
...
...
@@ -222,6 +223,8 @@ static int OpenDecoder( vlc_object_t *p_this )
if
(
p_image
==
NULL
)
{
msg_Err(
p_dec,
"unable to read image file %s"
,
psz_file
)
;
free(
psz_file
)
;
free(
p_dec->p_sys
)
;
return
VLC_EGENERIC
;
}
msg_Dbg(
p_dec,
"file %s loaded successfully"
,
psz_file
)
;
...
...
modules/control/http/http.c
View file @
be687730
...
...
@@ -142,6 +142,7 @@ static int Open( vlc_object_t *p_this )
p_intf->p_sys
=
p_sys
=
malloc(
sizeof(
intf_sys_t
)
)
;
if(
!p_intf->p_sys
)
{
free(
psz_address
)
;
return(
VLC_ENOMEM
)
;
}
...
...
modules/control/lirc.c
View file @
be687730
...
...
@@ -98,6 +98,7 @@ static int Open( vlc_object_t *p_this )
if(
i_fd
==
-
1
)
{
msg_Err(
p_intf,
"lirc initialisation failed"
)
;
free(
p_intf->p_sys->psz_file
)
;
free(
p_intf->p_sys
)
;
return
1
;
}
...
...
@@ -109,6 +110,7 @@ static int Open( vlc_object_t *p_this )
{
msg_Err(
p_intf,
"failure while reading lirc config"
)
;
lirc_deinit()
;
free(
p_intf->p_sys->psz_file
)
;
free(
p_intf->p_sys
)
;
return
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