Home GnuPG

Fix memory leak in secmem in out of core conditions.

Description

Fix memory leak in secmem in out of core conditions.

* src/secmem.c (_gcry_secmem_malloc_internal): Release pool descriptor
if the pool could not be allocated.

(cherry picked from commit f74687fd43f5772a372f54031d5a9527597f4ce4)

  • GnuPG-bug-id: T4211
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details