-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Revert "Fix memory leak in Offloading API" #161465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit b80b48d.
@llvm/pr-subscribers-llvm-binary-utilities Author: None (ronlieb) ChangesReverts llvm/llvm-project#161430 Full diff: https://github.com/llvm/llvm-project/pull/161465.diff 1 Files Affected:
diff --git a/llvm/lib/Object/OffloadBundle.cpp b/llvm/lib/Object/OffloadBundle.cpp
index a6a9628acddcc..0dd378e65fd81 100644
--- a/llvm/lib/Object/OffloadBundle.cpp
+++ b/llvm/lib/Object/OffloadBundle.cpp
@@ -120,15 +120,14 @@ OffloadBundleFatBin::create(MemoryBufferRef Buf, uint64_t SectionOffset,
if (identify_magic(Buf.getBuffer()) != file_magic::offload_bundle)
return errorCodeToError(object_error::parse_failed);
- std::unique_ptr<OffloadBundleFatBin> TheBundle(
- new OffloadBundleFatBin(Buf, FileName));
+ OffloadBundleFatBin *TheBundle = new OffloadBundleFatBin(Buf, FileName);
// Read the Bundle Entries
Error Err = TheBundle->readEntries(Buf.getBuffer(), SectionOffset);
if (Err)
return Err;
- return TheBundle;
+ return std::unique_ptr<OffloadBundleFatBin>(TheBundle);
}
Error OffloadBundleFatBin::extractBundle(const ObjectFile &Source) {
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/17982 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/11559 Here is the relevant piece of the build log for the reference
|
Can we reland this? Sanitizer bots are broken again. |
yup, working on a solution. The original fix caused other sanitizer build bots to fail. https://lab.llvm.org/buildbot/#/changes/54686 |
This reverts commit d392563.
…vm#161573) This reverts commit d392563.
Reverts #161430