[vlc-commits] DVB (old): fix memory leak

Rémi Denis-Courmont git at videolan.org
Tue Jan 28 17:25:11 CET 2014


vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 27 18:25:04 2014 +0200| [f35631d406dea3392c9bda2bae4a878096f60c3f] | committer: Rémi Denis-Courmont

DVB (old): fix memory leak

(cherry picked from commit ed9993ea0f46b778daf24c89cbb6607197c15ebe)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=f35631d406dea3392c9bda2bae4a878096f60c3f
---

 modules/access/dvb/scan.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 0122654..9854012 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -284,6 +284,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
                 free( psz_filename );
                 break;
             }
+            free( psz_filename );
         }
 
         closedir( p_dir );



More information about the vlc-commits mailing list