[vlc-devel] commit: sap: fix memleak. ( Rémi Duraffort )

git version control git at videolan.org
Mon May 4 20:13:38 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon May  4 14:32:16 2009 +0200| [54a72cc1d9401be855a6b5096e4428d861d2406a] | committer: Rémi Duraffort 

sap: fix memleak.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54a72cc1d9401be855a6b5096e4428d861d2406a
---

 modules/services_discovery/sap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 8552994..a43a892 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -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 );
         }
     }




More information about the vlc-devel mailing list