Fix double free issue in qemu_set_log_filename().