[vlc-devel] commit: Unlikely memory leak - fixes #2256 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Oct 29 21:28:29 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Oct 29 22:28:18 2008 +0200| [35d35480c4dab11b13925d4d125eac52274054ad] | committer: Rémi Denis-Courmont
Unlikely memory leak - fixes #2256
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35d35480c4dab11b13925d4d125eac52274054ad
---
modules/video_output/snapshot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/snapshot.c b/modules/video_output/snapshot.c
index 08d4381..118e65a 100644
--- a/modules/video_output/snapshot.c
+++ b/modules/video_output/snapshot.c
@@ -275,7 +275,10 @@ static int Init( vout_thread_t *p_vout )
p_snapshot->date = 0;
p_snapshot->p_data = ( char* ) malloc( i_datasize );
if( p_snapshot->p_data == NULL )
+ {
+ free( p_snapshort );
return VLC_ENOMEM;
+ }
p_vout->p_sys->p_list[i_index] = p_snapshot;
}
More information about the vlc-devel
mailing list