Squash some memory leaks in `input_source.m`.