Skip to content

Commit

Permalink
crimson/osd/lsan_suppressions: add MallocExtension::Register
Browse files Browse the repository at this point in the history
```
=================================================================
==80592==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7f5c76eb6367 in operator new(unsigned long) (/lib64/libasan.so.6+0xb6367)
    #1 0x7f5c76a2fb81 in MallocExtension::Register(MallocExtension*) (/lib64/libtcmalloc.so.4+0x2fb81)

SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s)
```

Signed-off-by: Matan Breizman <[email protected]>
  • Loading branch information
Matan-B committed Aug 22, 2023
1 parent 076e9a7 commit bc19097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crimson/osd/lsan_suppressions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

static char kLSanDefaultSuppressions[] =
"leak:InitModule\n"
"leak:MallocExtension::Initialize\n";
"leak:MallocExtension::Initialize\n"
"leak:MallocExtension::Register\n";

SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() {
return kLSanDefaultSuppressions;
Expand Down

0 comments on commit bc19097

Please sign in to comment.