[all-commits] [llvm/llvm-project] 07e8db: [sanitizer_common] Fix memory leak in ListOfModule...
Andrew Haberlandt via All-commits
all-commits at lists.llvm.org
Tue Apr 7 10:19:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07e8db61f9e10a5825330d63c36022e849c96116
https://github.com/llvm/llvm-project/commit/07e8db61f9e10a5825330d63c36022e849c96116
Author: Andrew Haberlandt <ahaberlandt at apple.com>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_common.h
Log Message:
-----------
[sanitizer_common] Fix memory leak in ListOfModules (#190104)
I found a rather old leak in `ListOfModules`. `ListOfModules` has a
member
```
InternalMmapVectorNoCtor<LoadedModule> modules_;
```
Which has neither a constructor nor destructor. As a consequence, we
need to call `Destroy` on it when ListOfModules is destroyed, so that
the memory is released to the OS (via munmap).
rdar://173906291
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