Don't leak memory
authormalc <av1474@comtv.ru>
Fri, 23 Nov 2012 11:47:03 +0000 (23 15:47 +0400)
committermalc <av1474@comtv.ru>
Fri, 23 Nov 2012 11:47:03 +0000 (23 15:47 +0400)
link.c

diff --git a/link.c b/link.c
index 4f014fd..837ab2e 100644 (file)
--- a/link.c
+++ b/link.c
@@ -1523,6 +1523,7 @@ static char *mbtoutf8 (char *s)
         p += fz_runetochar (p, tmp[i]);
     }
     *p = 0;
+    free (tmp);
     return r;
 }