login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
9
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Rob Landley <rob@...>
To: Ahmed S. Darwish <darwish.07@...>
Cc: <akpm@...>, <linux-kernel@...>, <rdunlap@...>
Subject:
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
Date: Tuesday, October 9, 2007 - 6:19 pm
On Tuesday 09 October 2007 8:03:15 am Ahmed S. Darwish wrote:
quoted text
> $ 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 ?
If exit() doesn't free all the memory the program allocated, we have bigger problems.
quoted text
> Regards,
Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Stop docproc segfaulting when SRCTREE isn't set.
, Rob Landley
, (Tue Oct 9, 2:25 am)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
, Sam Ravnborg
, (Thu Oct 18, 7:53 am)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
, Randy Dunlap
, (Tue Oct 9, 11:56 am)
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.
, Rob Landley
, (Tue Oct 9, 6:19 pm)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
, Randy Dunlap
, (Tue Oct 9, 11:55 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.
, Randy Dunlap
, (Tue Oct 9, 1:24 pm)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.
, Ahmed S. Darwish
, (Tue Oct 9, 1:51 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Eric Sandeen
Re: [RFC] Heads up on sys_fallocate()
Filippos Papadopoulos
Re: INITIO scsi driver fails to work properly
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
593 guests
online.
Online users
ericd11
Syndicate