Home GnuPG

hmac: Fix memory leak

Description

hmac: Fix memory leak

* src/hmac.c: Release HMAC256 context

LeakSanitizer marks the allocation of this context as leaked. Since the
hmac binary is used during the build with --enable-hmac-binary-check,
this fails the build with AddressSanitizer/LeakSanitizer.

  • Signed-off-by: Clemens Lang <cllang@redhat.com>

Details

Provenance
Clemens Lang via Gcrypt-devel <gcrypt-devel@lists.gnupg.org>Authored on Feb 11 2022, 4:55 PM
gniibeCommitted on Feb 14 2022, 7:11 AM
Parents
rC7fc5d33e7416: fips: Fix memory leaks in FIPS mode
Branches
Unknown
Tags
Unknown

Event Timeline

gniibe committed rC6994d874af86: hmac: Fix memory leak (authored by Clemens Lang via Gcrypt-devel <gcrypt-devel@lists.gnupg.org>).Feb 14 2022, 7:11 AM