YAGAC is a library that when linked to your C program, allows you to conveniently track or trash memory leaks within your application while it is still running. You can have multiple garbage collectors according the code part you are in. It tracks memory assigned by your code only, and does not monitor third part libraries. Tracking can be activated by updating a debug flag without restarting your application. It is intended for use with daemon-type programs.