gpg: Fix memory leak.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Jul 2017 12:53:12 +0000 (21:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Jul 2017 12:53:12 +0000 (21:53 +0900)
* g10/textfilter.c (copy_clearsig_text): Free the buffer.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(backport from master commit:
6b9a89e4c7d6f19de62e0a908a8d80c98bf99819)

g10/textfilter.c

index 79f2f67..a92a53d 100644 (file)
@@ -245,5 +245,6 @@ copy_clearsig_text( IOBUF out, IOBUF inp, MD_HANDLE md,
     if( truncated )
        log_info(_("input line longer than %d characters\n"), MAX_LINELEN );
 
+    xfree (buffer);
     return 0; /* okay */
 }