After some discussion with spm and mwh:
There are really (at least) two bugs here: whatever was using the memory, and that it wasn't automatically stopped.
Other scripts set an rlimit on themselves at startup; scan_branches should too.
After some discussion with spm and mwh:
There are really (at least) two bugs here: whatever was using the memory, and that it wasn't automatically stopped.
Other scripts set an rlimit on themselves at startup; scan_branches should too.