[Bug 256211] valgrind shows one leak every time

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 28 May 2021 02:49:49 UTC

            Bug ID: 256211
           Summary: valgrind shows one leak every time
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: mazoti@gmail.com

I develop a very small garbage collector in C and doesn't matter how many
malloc()s I did it always suppressed 4096 bytes in 1 block (1 free() missed) 

git clone https://github.com/mazoti/cgc
cd cgc
clang -g example.c
valgrind ./a.out

I tested exact the same code in debian linux and everything is fine (no leaks).
I don't know if it is a libc, kernel or valgrind bug.

Best regards,

You are receiving this mail because:
You are the assignee for the bug.