Home GnuPG

core: Make gpgrt_free robust against legacy free implementations.

Description

core: Make gpgrt_free robust against legacy free implementations.

* src/init.c (_gpgrt_free): Shortcut NULL and save ERRNO.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 20 2021, 9:18 AM
Parents
rEad062b0a5b7d: build,tests: Fix leaks of memory or file pointer.
Branches
Unknown
Tags
Unknown