_load_file/_load_string are shorthands for buffer_load->json_decode->room_pack_load_map and json_decode->room_pack_load_map accordingly.
As such, they clean up their maps, though looking at it, I need to make _load_file clean up the temporary buffer as well. Other functions are unaffected.