[vlc-commits] dvb: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 18:59:41 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:36:22 2017 +0100| [73efed70588192d0bb8935a5253f70d7f9072634] | committer: Thomas Guillem
dvb: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73efed70588192d0bb8935a5253f70d7f9072634
---
modules/access/dvb/scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 5ef6d08efe..6248b2247b 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -1712,7 +1712,7 @@ block_t *scan_GetM3U( scan_t *p_scan )
const size_t i_total_services = scan_CountServices( p_scan );
size_t i_filtered_count = 0;
- const scan_service_t **pp_filtered_list = malloc( sizeof(scan_service_t *) * i_total_services );
+ const scan_service_t **pp_filtered_list = vlc_alloc( i_total_services, sizeof(scan_service_t *) );
if( !pp_filtered_list )
{
block_Release( p_playlist );
More information about the vlc-commits
mailing list