Permalink
Browse files

Unlikely memory leak (fixes #2304)

(cherry picked from commit d7c5e80)
  • Loading branch information...
1 parent 16dd19e commit 4e4a9aee953b96fffe5259ec32d06d785dac0ea5 Rémi Denis-Courmont committed Nov 26, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 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=

0 comments on commit 4e4a9ae

Please sign in to comment.