tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Fix netbsd32's getfh()



Christos Zoulas writes:
> Well, let's not propagate the evil design! I is is one thing having:
> 
>       void *p = malloc(n);
>       free(p);
> 
> where you know p is going to be NULL when it fails and another having:
> 
>       foo *p;
>       error = allocate_foo(&p);
>       free_foo(p);
> 
> and expect p to be altered in the error path of allocate_foo.
> 
> Please, let's fix it! I volunteer :-)

*tag*  you're it!


Home | Main Index | Thread Index | Old Index