[vlc-devel] commit: FIx potential memleak (CID 217) ( Rémi Duraffort )

git version control git at videolan.org
Mon Oct 6 15:46:47 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sun Oct  5 19:28:52 2008 +0200| [ebc02c296ff12aad866fafa71007a185bfbd6394] | committer: Derk-Jan Hartman 

FIx potential memleak (CID 217)
(cherry picked from commit 888c97bb2a47ba061b6feb78afd6c3fc74fdbdf6)

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

 modules/misc/notify/notify.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/misc/notify/notify.c b/modules/misc/notify/notify.c
index 3a3d3c3..ccfb05a 100644
--- a/modules/misc/notify/notify.c
+++ b/modules/misc/notify/notify.c
@@ -94,6 +94,7 @@ static int Open( vlc_object_t *p_this )
 
     if( !notify_init( APPLICATION_NAME ) )
     {
+        free( p_sys );
         msg_Err( p_intf, "can't find notification daemon" );
         return VLC_EGENERIC;
     }




More information about the vlc-devel mailing list