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

  • SEARCH
  • Home
  • 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 7947873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:33:23+00:00 2026-06-04T01:33:23+00:00

I create a single mutable string object. Now I have released the object many

  • 0

I create a single mutable string object. Now I have released the object many times, even though I allocated them only once. According to basic memory management rules, this is wrong. But then it should crash, but this never happens. I was expecting some EXC_BAD_ACCESS error.

I received the error :

malloc: *** error for object 0x6d5ac60: double free
*** set a breakpoint in malloc_error_break to debug

Why the app does not crash?

NSMutableString *firstOwner = [[NSMutableString alloc] init];
[firstOwner release];
[firstOwner release];
[firstOwner release];
NSMutableString *temporaryObject = firstOwner;
[temporaryObject release];
[temporaryObject release];
  • 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-06-04T01:33:24+00:00Added an answer on June 4, 2026 at 1:33 am

    Just because a crash doesn’t happen for you doesn’t mean it won’t happen for somebody else.

    You’re just illustrating a case where the app can continue to limp along after making memory management errors. The crash may not be happening because aside from blatantly over-releasing, you’re not doing anything else with the object references.

    But if you attempted to use or access “firstOwner” or “temporaryObject” later, you’d absolutely crash with EXC_BAD_ACCESS then and there. Access to non-existent or over-released objects are a primary cause of these kinds of crashes.

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

Sidebar

Related Questions

I have code to create a single Google+ circle. But when I created multiple
Does anyone know if it is possible to create a single connection string that
I have a function that will create a select where clause, but right now
If i create a singleton class then only one object of that class can
I often need to create single events that are not needed after they have
Hai i want to create number notification dynamically,i can able to create single notification
We need to create a single jpg image from a range of existing jpgs.
I need to create a single trace file that spans several days for one
I hope to create a single app that supports both the iPhone and the
Is it possible to create a single dll using 2 projects in MS VS

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.