[vlc-devel] commit: Unlikely memory leak (fixes #2304) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Nov 26 18:42:44 CET 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Nov 26 19:38:22 2008 +0200| [4e4a9aee953b96fffe5259ec32d06d785dac0ea5] | committer: Rémi Denis-Courmont
Unlikely memory leak (fixes #2304)
(cherry picked from commit d7c5e8057c4a938155c614392c1212c49e61f83d)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e4a9aee953b96fffe5259ec32d06d785dac0ea5
---
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