[vlc-devel] commit: Fix memleak (CID 225) ( Rémi Duraffort )
git version control
git at videolan.org
Thu Oct 2 21:13:36 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 1 21:34:17 2008 +0200| [315cfe17493bc13af6980c0901ddf32439989334] | committer: Derk-Jan Hartman
Fix memleak (CID 225)
(cherry picked from commit c7690cec0129d2fb3198e60602c4894e728df092)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=315cfe17493bc13af6980c0901ddf32439989334
---
modules/misc/rtsp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 561e110..25e70bc 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -593,11 +593,13 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
}
if( i_nal_type == 7 )
{
+ free( p_64_sps );
p_64_sps = vlc_b64_encode_binary( &p_buffer[4], i_size - 4 );
sprintf_hexa( hexa, &p_buffer[5], 3 );
}
else if( i_nal_type == 8 )
{
+ free( p_64_pps );
p_64_pps = vlc_b64_encode_binary( &p_buffer[4], i_size - 4 );
}
i_buffer -= i_size;
More information about the vlc-devel
mailing list