Re: free(): invalid pointer:



Cyron wrote, On 30/09/07 21:03:
I'm getting a bizaare glibc error referencing free -- I malloc a
chunk of memory and then later when I try to free it is when the
program aborts. I've added some debug code to the source and find

<snip>

You are probably writing beyond the end or before the start of the allocated space. If you can get the program down to a reasonably small chunk of code that shows the problem we can take a look at it.
--
Flash Gordon
.



Relevant Pages

  • free(): invalid pointer:
    ... chunk of memory and then later when I try to free it is when the ... I've added some debug code to the source and find ... that my pointer i get from malloc matches the one that I'm calling ...
    (comp.lang.c)
  • Re: free(): invalid pointer:
    ... chunk of memory and then later when I try to free it is when the ... I've added some debug code to the source and find ... that my pointer i get from malloc matches the one that I'm calling ...
    (comp.lang.c)