Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/nfs



At 05:14 PM 5/28/2003, Bill Studenmund wrote:
On Wed, 28 May 2003, David Laight wrote:

> On Wed, May 21, 2003 at 02:41:27PM +0000, YAMAMOTO Takashi wrote:
> >
> > Module Name:        src
> > Committed By:       yamt
> > Date:               Wed May 21 14:41:27 UTC 2003
> >
> > Modified Files:
> >     src/sys/nfs: nfs_socket.c nfs_syscalls.c
> >
> > Log Message:
> > - use FREE not free for MALLOC'ed memory.
>
> Erm why????

Because if you use MALLOC, you're supposed to use FREE. If you want to use
free(), you must use malloc(), not MALLOC().

I don't believe that's true.  You use MALLOC and FREE for fixed sizes and
when the inline makes a performance difference.  Otherwise use malloc/free.


--
Matt Thomas               Internet:   matt%3am-software.com@localhost
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message




Home | Main Index | Thread Index | Old Index