mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-13 18:21:03 +02: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",
|
log_error ("build_packet(PLAINTEXT) failed: %s\n",
|
||||||
gpg_strerror (rc) );
|
gpg_strerror (rc) );
|
||||||
pt->buf = NULL;
|
pt->buf = NULL;
|
||||||
|
free_packet (&pkt);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
byte copy_buffer[4096];
|
byte copy_buffer[4096];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user