• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa application memory leak check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa application memory leak check


  • Subject: Cocoa application memory leak check
  • From: XiaoGang Li <email@hidden>
  • Date: Mon, 27 Apr 2009 17:33:00 +0800

Hello, list
I try to check my Cocoa application memory leak issue using Instruments.
here I have a question here:
for example:
if(conditions == true){
       void *buffer1 = malloc(32);
       buffer1 = NULL;
} else {
       void *buffer2 = malloc(32);
       buffer2 = NULL;
}
the Instruments (leaks) can not find out the buffer2 leak, because this part
is not executed. So, how to check this kind of memory leak?  Thanks.

Xiaogang
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cocoa application memory leak check
      • From: WT <email@hidden>
  • Prev by Date: Re: NSDateFormatter bug in timeZone
  • Next by Date: Problem when setting the background color using NSColorWell
  • Previous by thread: Re: NSDateFormatter bug in timeZone
  • Next by thread: Re: Cocoa application memory leak check
  • Index(es):
    • Date
    • Thread