This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: scm_must_malloc and memory leaking?


forcer <forcer@mindless.com> writes:

> Hmm...
> When using
> 
> 	f = scm_must_malloc(sizeof(some_struct));
> 	f->data = scm_must_malloc(size);
> 
> and there won't be enough free memory for the second
> scm_must_malloc even after gc, the allocated memory in f is
> lost and won't be free'd. Is that true? 

Nope.


-- 
Greg