mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
g10: Fix memory leak.
* g10/sign.c (write_plaintext_packet): Free packet. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
abae8a9dc8
commit
84f262102b
@ -627,6 +627,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode)
|
||||
log_error ("build_packet(PLAINTEXT) failed: %s\n",
|
||||
gpg_strerror (rc) );
|
||||
pt->buf = NULL;
|
||||
free_packet (&pkt);
|
||||
}
|
||||
else {
|
||||
byte copy_buffer[4096];
|
||||
|
Loading…
x
Reference in New Issue
Block a user