[all-commits] [llvm/llvm-project] d5fe63: [nfc][clang-offload-bundler] Don't leak on exit(1)...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Mon Dec 9 08:54:18 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d5fe6332c9f25590b9878ad31d6461ea581e0fa5
https://github.com/llvm/llvm-project/commit/d5fe6332c9f25590b9878ad31d6461ea581e0fa5
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2024-12-09 (Mon, 09 Dec 2024)
Changed paths:
M clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Log Message:
-----------
[nfc][clang-offload-bundler] Don't leak on exit(1) (#119178)
`exit(1)` does not calls C++ destructors, however, it calls
`at_exit()` handlers, including lsan.
Usually lsan can see pointers of local allocations
on the stack or in registers, but those can be
discarded by `noreturn` `exit` call.
Fixes leak triggered by f7685af4a5bd188e6d548967d818d8569f10a70d.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list