g10: Push compress filter only if compressed. STABLE-BRANCH-1-4
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 13 Apr 2018 01:09:02 +0000 (10:09 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 13 Apr 2018 01:17:55 +0000 (10:17 +0900)
commit0f8fd95ab32a6d29dac79e19f0850037c7d0c16f
treeb9bca616c85ab4e96249f7e72599f0318748a1b0
parent097c59315813b3568d1682bccd37e16411006d5b
g10: Push compress filter only if compressed.

* g10/compress.c (handle_compressed): Fix memory leak.

--

(backport from STABLE-BRANCH-2-2 commit:
c31abf84659dbda5503dd9f3aa3449520bcd1b84)

All other calls of push_compress_filter checks ALGO,
so, do it here, too.

GnuPG-bug-id: 3898
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/compress.c