[MINC-development] Another pass at micreate_tempfile()
Robert VINCENT
minc-development@bic.mni.mcgill.ca
Fri, 14 Mar 2003 10:03:57 -0500
On Thu, 13 Mar 2003, Peter NEELIN wrote:
> 'Looks good. Minor point though - if malloc returns NULL, I think that you
> will try to free the NULL anyway (farther down, outside the #if, when you
> test the file descriptor). Rather than setting temp_fd to -1, it would be
> simpler to just return NULL immediately. There is no cleanup required at
> that point (memory or descriptors).
>
Oops. Must've drank too much cough syrup. It's fixed now.
-bert