[lkml]   [2000]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: malloc(1/0) ??
On Wed, Nov 08, 2000 at 02:11:34PM -0800, H. Peter Anvin wrote:
> Followup to: <>
> By author: Igmar Palsenberg <>
> In newsgroup:


> > May I remind you guys that a malloc(0) is equal to a free(). There is no
> > way that any mem get's malloced.
> >
> Where the heck did you get idea?
> -hpa

Probably from the malloc man page where it is stated that *realloc*
with size 0 equals free :)

Which is worse: Ignorance or Apathy?
Who knows? Who cares?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.055 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site