Unlikely memory leak (fixes #2304)
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 26 Nov 2008 17:38:22 +0000 (19:38 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 26 Nov 2008 17:38:34 +0000 (19:38 +0200)
libs/loader/ldt_keeper.c

index 33d304a..2b524f0 100644 (file)
@@ -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=