blob: 52915113c3b94b0ced06c014ae43b77431f6a146 [file] [log] [blame]
// Copyright 2024 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/zx/vmar.h>
#include "runtime-module.h"
namespace dl {
RuntimeModule::~RuntimeModule() {
delete[] name_.c_str();
if (!no_delete_ && vaddr_size() > 0) {
zx::vmar::root_self()->unmap(abi_module_.vaddr_start, vaddr_size());
}
}
} // namespace dl