Re: [gtk-list] O.S. memory usage



Derek Simkowiak <dereks@kd-dev.com> writes:

> g_free(pointer);
> 
> 	Does that memory immediately go back to the O.S.?

In general, no.

> Or does Linux (and/or other O.S.s) hold on to it, say, in case my
> program does another g_malloc or some such thing?

Usually yes.

> 	If anyone can suggest a good FAQ, book, or any other reference,
> I'd be very grateful.

http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC21

-- 
						Guillaume



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]