Commit d7c5e805 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Unlikely memory leak (fixes #2304)

parent c61844bb
......@@ -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=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment