sim: fix minor --sysroot mem leak