login
Header Space

 
 

Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rob Landley <rob@...>
Cc: <akpm@...>, <linux-kernel@...>, <rdunlap@...>
Date: Tuesday, October 9, 2007 - 9:03 am

Hi Rob,

On Tue, Oct 09, 2007 at 01:25:18AM -0500, Rob Landley wrote:
[...]

$ man getcwd

 char *getcwd(char *buf, size_t size);
      
 As an extension to the POSIX.1 standard, Linux (libc4, libc5, glibc) getcwd() 
 allocates the buffer dynamically using malloc() if buf is NULL on call.

Shouldn't "srctree" be free()ed in case getenv("SRCTREE") failed ?

Regards,

-- 
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 9:03 am)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 1:19 pm)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 1:51 pm)
speck-geostationary