aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-01-11 15:39:07 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-01-11 15:39:07 +0100
commit3c3c1750868eb22ef79d78718ddc62ad80754a52 (patch)
tree9826ac6ee6212c2887d10a42f87b7d927b0e2062
parent1207c5344431289477f2a0af34370f01ce33d0f7 (diff)
downloadmblaze-3c3c1750868eb22ef79d78718ddc62ad80754a52.tar.gz
rfc2047: blaze822_decode_rfc2047: fix memory leak of srcenc
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 1cfec5c..f25762d 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -270,8 +270,8 @@ nocode:
fprintf(stderr, "error decoding rfc2047\n");
if (ic != (iconv_t)-1)
iconv_close(ic);
- free(srcenc);
nocodeok:
+ free(srcenc);
while (*src && dlen > 1) {
*dst++ = *src++;
dlen--;