When releasing a darray mux_packets at error, contents of mux_packets are not released. It causes memory leaks if error occurs during saving the replay buffer to a file.