Segmentation fault when free
Mel
fbsd.questions at rachie.is-a-geek.net
Sun Sep 21 00:07:08 UTC 2008
On Saturday 20 September 2008 13:46:23 Nash Nipples wrote:
> can someone please explain to me what happens to the allocated memory
> called within a function assigned to its local pointer after this function
> ends
Ok - let's see if I get this right:
- the allocated memory
- called within a function
- assigned to a local pointer
Any malloc'ed memory is application global accessible. Assigning a pointer to
a variable doesn't allocate memory (the compiler and runtime libraries
already setup storage for the variable, at declaration time). So, I have no
idea what you mean with the "called within a function" part.
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
More information about the freebsd-questions
mailing list