fix memory leak in sd_erase in bsp/simulator