[vlc-devel] commit: dc1394: fix potential memleak. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Dec 4 11:38:56 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec 4 11:33:46 2009 +0100| [c4fc052b1e12d5f0fed5026dbefc65643c080268] | committer: Rémi Duraffort
dc1394: fix potential memleak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c4fc052b1e12d5f0fed5026dbefc65643c080268
---
modules/access/dc1394.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/access/dc1394.c b/modules/access/dc1394.c
index 03ea72b..111bbbb 100644
--- a/modules/access/dc1394.c
+++ b/modules/access/dc1394.c
@@ -618,7 +618,10 @@ static block_t *GrabAudio( demux_t *p_demux )
p_sys->i_audio_max_frame_size );
if( i_read <= 0 )
+ {
+ block_Release( p_block );
return NULL;
+ }
p_block->i_buffer = i_read;
More information about the vlc-devel
mailing list