cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/04/04:02:34

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Memory leak.
Date: Fri, 03 Oct 1997 23:38:02 -0700
Organization: Alcyone Systems
Lines: 13
Message-ID: <3435E44A.5C65B10B@alcyone.com>
References: <3 DOT 0 DOT 16 DOT 19971003101449 DOT 36e7aec2 AT hem1 DOT passagen DOT se> <613s4d$hrm AT dfw-ixnews3 DOT ix DOT netcom DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

firewind wrote:

>         int *foo = (int *)malloc(1024 * (sizeof int));

Tsk, tsk.  sizeof int is illegal.  You meant sizeof(int).

-- 
          Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                        Alcyone Systems / http://www.alcyone.com/max/
   San Jose, California, United States / icbm://+37.20.07/-121.53.38
                                      \
   "After each war there is a little / less democracy to save."
                                    / Brooks Atkinson

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019