]> git.sesse.net Git - vlc/commitdiff
* src/stream_output/sap.c: Fixed small memory leak.
authorChristophe Massiot <massiot@videolan.org>
Tue, 2 Aug 2005 17:43:34 +0000 (17:43 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 2 Aug 2005 17:43:34 +0000 (17:43 +0000)
src/stream_output/sap.c

index 531f03257dfd782000d0c1c28f3b9d8ebfb4e8bf..ee3a225b9953e76900dc13ba85d1d8367e2e5466 100644 (file)
@@ -737,6 +737,7 @@ static char *convert_to_utf8( struct sap_handler_t *p_this, char *psz_local )
     if( ret == (size_t)(-1) || i_in )
     {
         msg_Warn( p_this, "Failed to convert \"%s\" to UTF-8", psz_local );
+        free(psz_unicode);
         return strdup( psz_local );
     }
     *psz_out = '\0';