Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5965865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:42:03+00:00 2026-05-22T19:42:03+00:00

do the entries in the XCode profiler Leaked Blocks table imply there was definite

  • 0

do the entries in the XCode profiler “Leaked Blocks” table imply there was definite leakage?

That is assuming I run my iPhone app under profiler, than look at the leaked blocks information. so there are multiple NSDate rows at the top of my list. If I click on one of these rows I can navigate down to the bit of code in question.

So I’m wanting to confirm do all instances of entries in the “Leaked Blocks” table imply there is a real leakage there, that requires coding to be updated/fixed to resolve?

NOTE – One of the reasons I ask is that the code I posted here do I have to release the NSDate in this code below? for example was from code that the profiler highed to me under “Leaked Blocks”, however the code (refer to this post) was reviewed by others and they tell me it’s fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:42:04+00:00Added an answer on May 22, 2026 at 7:42 pm

    do the entries in the XCode profiler “Leaked Blocks” table imply there was definite leakage?

    yes.

    leaks are evaluated in a lazy manner. leaks is not guaranteed to catch all leaks because it does not actually record all references – it just scans the process’s memory (including stacks and registers) for patterns (e.g. the pointer value) of active allocations.

    man leaks will give you specifics of the implementation, and the WEAKNESSES section confirms my response to your question, and gives an example of a circumstance where leaks will not be detected.

    if you manage your allocations in a truly convoluted way (e.g. pointer arithmetic/offsets), you could in fact work around the system and introduce false positives — don’t do that =)

    when you post code at SO and people tell you it’s right, they mean the program you posted is correct – the leak (reference count imbalance in this case) is introduced in another part of your program. that is, the pointer you return (newDate in the link) is not correctly ref-counted by the caller, or who the caller passes it to.

    instruments all record all ref counts for you – in case static analysis returns no issues.

    specifically, instruments is showing you where the leaked allocation/object was created.

    hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Xcode gives me this warning when I build the app for release. Application failed
There are 2 entries for a Servlet Filter, one in web.xml and one in
I'm importing some entries into a MYSQL table and it breaks on one of
I am creating entries in a contract table using linq to sql. One column
I have some entries in a field that look like this: NEvada city or
I am using what, according to my Xcode debugger, is proper syntax to delete
var entries = from video in Video.GetTopVideos().AsEnumerable() select new XElement(item, new XElement(title, video.Title), new
When using sub-directory entries in .gitignore, git clean -X doesn't clean the ignored sub-directory.
I have the correct entries in the web.config file in my ASP.NET project. How
I was just trying to dismiss a UIAlertView using the following call: [serverConnectionClosedAlertView dismissAnimated:YES];

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.