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

git version control git at videolan.org
Sat Sep 27 19:39:20 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 27 19:41:56 2008 +0200| [e903b2ff7df4f6694813bc1a6946d860d699f437] | committer: Pierre d'Herbemont 

mp4: Fix a leak.

Spotted by LLVM/Clang Static Analyzer.

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

 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