]> git.sesse.net Git - vlc/commitdiff
modules/demux/ts.c: Fixed a very very minor memleak
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 26 Jan 2006 17:14:09 +0000 (17:14 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 26 Jan 2006 17:14:09 +0000 (17:14 +0000)
modules/demux/ts.c

index 5d607969b3c72ee4e2abe60bb44d4ccf6cd519d4..69bc816b8f1a1ffafc3291c4bc63cd0815b0500e 100644 (file)
@@ -806,12 +806,13 @@ static void Close( vlc_object_t *p_this )
             fclose( p_sys->p_file );
             p_sys->p_file = NULL;
         }
-        free( p_sys->psz_file );
-        p_sys->psz_file = NULL;
 
         free( p_sys->buffer );
     }
 
+    free( p_sys->psz_file );
+    p_sys->psz_file = NULL;
+
     free( p_sys );
 }