[vlc-devel] commit: mp4: Fix a leak. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Oct 2 21:13:27 CEST 2008


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 27 19:41:56 2008 +0200| [6554024a400de2140863c52e6ec618c04cd0645d] | committer: Derk-Jan Hartman 

mp4: Fix a leak.

Spotted by LLVM/Clang Static Analyzer.
(cherry picked from commit e903b2ff7df4f6694813bc1a6946d860d699f437)

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

 modules/demux/mp4/drms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mp4/drms.c b/modules/demux/mp4/drms.c
index bb0fa47..aa0b561 100644
--- a/modules/demux/mp4/drms.c
+++ b/modules/demux/mp4/drms.c
@@ -2032,6 +2032,7 @@ static int GetiPodID( int64_t *p_ipod_id )
 
                 IOObjectRelease( iterator );
             }
+            CFRelease( match_dic );
         }
 
         mach_port_deallocate( mach_task_self(), port );




More information about the vlc-devel mailing list