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
31180c45
Commit
31180c45
authored
Mar 12, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: cdda: fix resource leak
cid 403219 ioctl isn't released
parent
65169549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/access/cdda.c
modules/access/cdda.c
+3
-3
No files found.
modules/access/cdda.c
View file @
31180c45
...
@@ -147,18 +147,18 @@ static int Open( vlc_object_t *p_this )
...
@@ -147,18 +147,18 @@ static int Open( vlc_object_t *p_this )
if
(
psz_name
[
0
]
&&
psz_name
[
1
]
==
':'
&&
if
(
psz_name
[
0
]
&&
psz_name
[
1
]
==
':'
&&
psz_name
[
2
]
==
'\\'
&&
psz_name
[
3
]
==
'\0'
)
psz_name
[
2
]
=
'\0'
;
psz_name
[
2
]
==
'\\'
&&
psz_name
[
3
]
==
'\0'
)
psz_name
[
2
]
=
'\0'
;
#endif
#endif
/* Set up p_access */
STANDARD_BLOCK_ACCESS_INIT
/* Open CDDA */
/* Open CDDA */
if
(
(
vcddev
=
ioctl_Open
(
VLC_OBJECT
(
p_access
),
psz_name
)
)
==
NULL
)
if
(
(
vcddev
=
ioctl_Open
(
VLC_OBJECT
(
p_access
),
psz_name
)
)
==
NULL
)
{
{
msg_Warn
(
p_access
,
"could not open %s"
,
psz_name
);
msg_Warn
(
p_access
,
"could not open %s"
,
psz_name
);
free
(
psz_name
);
free
(
psz_name
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
free
(
psz_name
);
free
(
psz_name
);
/* Set up p_access */
STANDARD_BLOCK_ACCESS_INIT
p_sys
->
vcddev
=
vcddev
;
p_sys
->
vcddev
=
vcddev
;
/* Do we play a single track ? */
/* Do we play a single track ? */
...
...
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