[vlc-devel] commit: Unlikely memory leak (fixes #2304) ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Nov 26 18:38:43 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Nov 26 19:38:22 2008 +0200| [d7c5e8057c4a938155c614392c1212c49e61f83d] | committer: Rémi Denis-Courmont 

Unlikely memory leak (fixes #2304)

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

 libs/loader/ldt_keeper.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libs/loader/ldt_keeper.c b/libs/loader/ldt_keeper.c
index 33d304a..2b524f0 100644
--- a/libs/loader/ldt_keeper.c
+++ b/libs/loader/ldt_keeper.c
@@ -217,6 +217,7 @@ ldt_fs_t* Setup_LDT_Keeper(void)
     ldt_fs->fd = open("/dev/zero", O_RDWR);
     if(ldt_fs->fd<0){
         perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: ");
+        free(ldt_fs);
 	return NULL;
     }
     fs_seg=




More information about the vlc-devel mailing list