Skip to content

Avoid leak in check_outside_mappings.#4077

Merged
rocallahan merged 1 commit into
rr-debugger:masterfrom
bernhardu:check_outside_mappings-avoid-leak
Jun 16, 2026
Merged

Avoid leak in check_outside_mappings.#4077
rocallahan merged 1 commit into
rr-debugger:masterfrom
bernhardu:check_outside_mappings-avoid-leak

Conversation

@bernhardu

Copy link
Copy Markdown
Contributor

When I tried to update my ASan branch I received this report in the mmap_shared_extern test, unfortunately missing the important lines, but with this patch the report disappears:

==460704==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 32816 byte(s) in 1 object(s) allocated from:
    #0 0x7f8d926f4c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7f8d91ff89c4 in __alloc_dir ../sysdeps/unix/sysv/linux/opendir.c:115

SUMMARY: AddressSanitizer: 32816 byte(s) leaked in 1 allocation(s).

@rocallahan rocallahan merged commit 035e5e8 into rr-debugger:master Jun 16, 2026
4 of 5 checks passed
@bernhardu bernhardu deleted the check_outside_mappings-avoid-leak branch June 17, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants