Subj : Memory Pointers and Free To : borland.public.cpp.borlandcpp From : Alistair Date : Sun Jul 25 2004 12:56 am If I have a structure e.g. struct s_a { char *somedata; }; I then do the following : s_a *a = malloc(sizeof(s_a)); a->somedata = malloc(512); free(a); what happens to a->somedata, is that freed too? Or because it holds a different memory address it isnt free and its left hanging? (memory leak!?) Cheers Al .