]> git.sesse.net Git - vlc/commitdiff
sap: fix memleak.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 4 May 2009 12:32:16 +0000 (14:32 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 4 May 2009 12:32:16 +0000 (14:32 +0200)
modules/services_discovery/sap.c

index 8552994d80bc595d5f7418f9fc20b5d28e24defc..a43a89233c831728ae51086894f228ab3199eba4 100644 (file)
@@ -1491,6 +1491,7 @@ static int Decompress( const unsigned char *psz_src, unsigned char **_dst, int i
         if( ( i_result != Z_OK ) && ( i_result != Z_STREAM_END ) )
         {
             inflateEnd( &d_stream );
+            free( psz_dst );
             return( -1 );
         }
     }