[vlc-devel] commit: update: don't free the temp pointer, but free the original instead. (Derk-Jan Hartman )

git version control git at videolan.org
Thu Oct 2 21:40:12 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu Oct  2 16:41:22 2008 +0200| [97f83156a37514f9f6bb8786507e35118553f947] | committer: Derk-Jan Hartman 

update: don't free the temp pointer, but free the original instead.

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

 src/misc/update.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/update.c b/src/misc/update.c
index 0f54cd5..647626c 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -1731,11 +1731,11 @@ end:
         stream_Delete( p_stream );
     if( p_file )
         fclose( p_file );
-    free( psz_destination );
     free( psz_destfile );
     free( p_buffer );
     free( psz_size );
 
+    free( p_udt->psz_destination );
     p_udt->p_update->p_download = NULL;
 
     vlc_object_release( p_udt );




More information about the vlc-devel mailing list