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
2f00cae9
Commit
2f00cae9
authored
Aug 13, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb_scan: fix memleak.
parent
6b9c7f2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+2
-4
No files found.
modules/access/dvb/scan.c
View file @
2f00cae9
...
@@ -165,8 +165,6 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
...
@@ -165,8 +165,6 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
/* if there are no transponders in mem, laod from config file */
/* if there are no transponders in mem, laod from config file */
if
(
!*
pi_count
)
if
(
!*
pi_count
)
{
{
scan_dvbs_transponder_t
*
p_transponders
=
malloc
(
sizeof
(
scan_dvbs_transponder_t
)
);
DIR
*
p_dir
;
DIR
*
p_dir
;
char
*
psz_dir
=
NULL
;
char
*
psz_dir
=
NULL
;
...
@@ -223,6 +221,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
...
@@ -223,6 +221,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
/* parse file */
/* parse file */
if
(
f
)
if
(
f
)
{
{
scan_dvbs_transponder_t
*
p_transponders
=
malloc
(
sizeof
(
scan_dvbs_transponder_t
)
);
char
type
;
char
type
;
char
psz_fec
[
3
];
char
psz_fec
[
3
];
...
@@ -256,6 +255,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
...
@@ -256,6 +255,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
msg_Dbg
(
p_scan
->
p_obj
,
"parsed %d transponders from config"
,
*
pi_count
);
msg_Dbg
(
p_scan
->
p_obj
,
"parsed %d transponders from config"
,
*
pi_count
);
fclose
(
f
);
fclose
(
f
);
p_scan
->
parameter
.
sat_info
.
p_transponders
=
p_transponders
;
}
}
else
else
{
{
...
@@ -266,8 +266,6 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
...
@@ -266,8 +266,6 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
}
}
free
(
p_scan
->
parameter
.
sat_info
.
psz_name
);
free
(
p_scan
->
parameter
.
sat_info
.
psz_name
);
free
(
p_scan
->
parameter
.
sat_info
.
psz_path
);
free
(
p_scan
->
parameter
.
sat_info
.
psz_path
);
p_scan
->
parameter
.
sat_info
.
p_transponders
=
p_transponders
;
}
}
if
(
p_scan
->
i_index
<
*
pi_count
)
if
(
p_scan
->
i_index
<
*
pi_count
)
...
...
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