Removing unused buffers from module hsmg.