• 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
malloc_error_break
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

malloc_error_break


  • Subject: malloc_error_break
  • From: email@hidden
  • Date: Thu, 21 Oct 2010 14:44:02 -0600

Not a Cocoa topic but I am thinking the smart guys here can show me the error of my ways.

I do this:

BYTE *destination = (BYTE*)malloc(size);

... do stuff

free(destination);

The free() gives this error

malloc: *** error for object 0x21568580: Non-aligned pointer being freed (2)

How can I avoid this?

-koko
_______________________________________________

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: malloc_error_break
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: What causes CGEventTap to be automatically disabled?
  • Next by Date: Re: malloc_error_break
  • Previous by thread: Re: What causes CGEventTap to be automatically disabled?
  • Next by thread: Re: malloc_error_break
  • Index(es):
    • Date
    • Thread