]> git.lizzy.rs Git - plan9front.git/commitdiff
pc: fix ldt memory leak in procsetup()
authorcinap_lenrek <cinap_lenrek@felloff.net>
Mon, 2 Dec 2019 06:43:45 +0000 (07:43 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Mon, 2 Dec 2019 06:43:45 +0000 (07:43 +0100)
sys/src/9/pc/main.c

index 61db6f11315484615192c6d053685c3cc8ef9071..7d2e86b8d040be53f79a5ba39f6e6bad56b83e21 100644 (file)
@@ -589,7 +589,6 @@ procsetup(Proc *p)
        p->pcycles = -p->kentry;
 
        memset(p->gdt, 0, sizeof(p->gdt));
-       p->ldt = nil;
        p->nldt = 0;
        
        memset(p->dr, 0, sizeof(p->dr));