Messages in this thread |  | | | Date | Tue, 7 Jul 1998 13:00:55 +0300 | | From | Meelis Roos <> | | Subject | Re: Alan Cox patch 108 | |
d> I just saw the following:
d> +struct file ** alloc_fd_array(int num)
d> and then....
d> +void free_fd_array(struct file **array, int num)
d> Certainly somebody is asking for trouble...
Why? Doy you mean not checking for NULL in free_fd_array?
When alloc_fd_array returns NULL, it's not freed, et least that's how I
understood the code.
It's similar to malloc anf free.
--
Meelis Roos (mroos@tartu.cyber.ee)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
|  |