]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix memory leak in tr_utf8clean()'s utility function to_utf8()
authorJordan Lee <jordan@transmissionbt.com>
Mon, 28 Mar 2011 03:45:31 +0000 (03:45 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 28 Mar 2011 03:45:31 +0000 (03:45 +0000)
libtransmission/utils.c

index 875c2bce6090e76531d0aa1d26bff876dbdefee0..1e3ce1f9f905dfdd19bddd66a5a91fc6859857b2 100644 (file)
@@ -1252,6 +1252,8 @@ to_utf8( const char * in, size_t inlen )
             iconv_close( cd );
         }
     }
+
+    tr_free( out );
 #endif
 
     if( ret == NULL )