Bug 214373
Summary: | Valgrind reports "possibly lost" for recent libcap | ||
---|---|---|---|
Product: | Tools | Reporter: | yan12125 (3cmqut5e44sxaake) |
Component: | libcap | Assignee: | Andrew G. Morgan (morgan) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | morgan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | n/a | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
yan12125
2021-09-12 12:48:52 UTC
Thanks for this bug report. I'll take a look. Thanks for the reproducer. This fixes it, essentially in the way you suggested: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=a3446b5c6e0879b289287c9a87a57cbdc95e99da $ LD_LIBRARY_PATH="$PWD/libcap" valgrind --leak-check=full ./progs/capsh ==280072== Memcheck, a memory error detector ==280072== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==280072== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info ==280072== Command: ./progs/capsh ==280072== ==280072== ==280072== HEAP SUMMARY: ==280072== in use at exit: 0 bytes in 0 blocks ==280072== total heap usage: 2 allocs, 2 frees, 192 bytes allocated ==280072== ==280072== All heap blocks were freed -- no leaks are possible ==280072== ==280072== For lists of detected and suppressed errors, rerun with: -s ==280072== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Cool, thanks! |