Memory Leaks
Because Bacula runs routinely and unattended on client and server
machines, it may run for a long time. As a consequence, from the very
beginning, Bacula uses SmartAlloc
to ensure that there are no memory
leaks. To make detection of memory leaks effective, all Bacula code that
dynamically allocates memory must have a way to release it. In
general when the memory is no longer needed, it should be immediately
released, but in some cases, the memory will be held during the entire
time that Bacula is executing. In that case, there must be a routine
that can be called at termination time that releases the memory. In this
way, we will be able to detect memory leaks. Be sure to immediately
correct any and all memory leaks that are printed at the termination of
the daemons.
Possible Next Steps
Go to Special Files.
Go back to Developer Notes.
Go back to Developer Guide.