fixed use after free possibility from r_bin_reload