Home GnuPG
Diffusion GnuPG 91f8a9b33a12

g10: Fix memory leak.

Description

g10: Fix memory leak.

* g10/import.c (read_block): Call free_packet to skip the packet.

Cherry-pick of master commit of:
7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e

  • Reported-by: Philippe Antoine
  • GnuPG-bug-id: T3916
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 7 2018, 6:01 AM
Parents
rGf0fdee2e24a2: Fix use of strncpy, which is actually good to use memcpy.
Branches
Unknown
Tags
Unknown
Tasks
T3916: Memory leak in read_block