mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-26 01:52:45 +02:00
gpg: Fix memory leak.
* g10/textfilter.c (copy_clearsig_text): Free the buffer.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(backport from master commit:
6b9a89e4c7
)
This commit is contained in:
parent
1b1f44846b
commit
6b4abf1d49
|
@ -245,5 +245,6 @@ copy_clearsig_text( IOBUF out, IOBUF inp, MD_HANDLE md,
|
||||||
if( truncated )
|
if( truncated )
|
||||||
log_info(_("input line longer than %d characters\n"), MAX_LINELEN );
|
log_info(_("input line longer than %d characters\n"), MAX_LINELEN );
|
||||||
|
|
||||||
|
xfree (buffer);
|
||||||
return 0; /* okay */
|
return 0; /* okay */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user