[vlc-devel] commit: Fix double (or up to 2^sizeof(int) times) ( Rafaël Carré )

git version control git at videolan.org
Fri May 30 13:10:41 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 30 13:12:02 2008 +0200| [02c821f546ecadf9ee378915cec1e1a77615095a]

Fix double (or up to 2^sizeof(int) times)

Reported by Coverity scan : CID 142

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

 src/input/stream.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index 94ec224..6bc645a 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -448,10 +448,11 @@ static void AStreamDestroy( stream_t *s )
     {
         free( p_sys->list[p_sys->i_list]->psz_path );
         free( p_sys->list[p_sys->i_list] );
-        free( p_sys->list );
     }
 
-    free( s->p_sys );
+    free( p_sys->list );
+    free( p_sys );
+
     vlc_object_release( s );
 }
 




More information about the vlc-devel mailing list