lkml.org 
[lkml]   [1998]   [Jul]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 7 Jul 1998 13:00:55 +0300
FromMeelis Roos <>
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2008