diff options
Diffstat (limited to 'pipe.c')
-rw-r--r-- | pipe.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -47,14 +47,10 @@ pipealloc(struct file **f0, struct file **f1) bad: if(p) kfree((char*)p, PAGE); - if(*f0){ - (*f0)->type = FD_NONE; + if(*f0) fileclose(*f0); - } - if(*f1){ - (*f1)->type = FD_NONE; + if(*f1) fileclose(*f1); - } return -1; } |