public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ankit Jain <ankitjain1580@yahoo.com>
To: gcc <gcc-help@gcc.gnu.org>
Subject: malloc and free
Date: Fri, 24 Dec 2004 18:40:00 -0000	[thread overview]
Message-ID: <20041224184034.16784.qmail@web52908.mail.yahoo.com> (raw)

hi

routine xyz uses malloc and free functions. it gives
accurate and correct result if called once. 

but if the function is called in a loop N number of
times then probably it gives segmentation fault.

what is the reason?  can any body guess or test code
is needed?

thanks

ankit jain

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

             reply	other threads:[~2004-12-24 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24 18:40 Ankit Jain [this message]
2004-12-29  9:54 ` Ken Foskey
2004-12-27 17:38 lrtaylor
2004-12-27 17:45 ` Sriharsha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041224184034.16784.qmail@web52908.mail.yahoo.com \
    --to=ankitjain1580@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).