As described in #10, the functions load_rwf_info() and load_evt_info() both append data rather than assigning elements explicitly.
This is a slower and less memory efficient method of loading this data, and so it should be altered such that the array memory is allocated explicitly in each loop and the elements consequently assigned.