[vlc-devel] commit: Revert "update: don't free the temp pointer, but free the original instead." ( Rafaël Carré )

git version control git at videolan.org
Thu Aug 20 08:22:30 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Aug 20 08:06:12 2009 +0200| [db6fab48e6210a5fada1c1d97e4d87c1f151b880] | committer: Rafaël Carré 

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

This reverts commit 97f83156a37514f9f6bb8786507e35118553f947.

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

 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 83e380f..ccb68eb 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -741,11 +741,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_restorecancel( canc );




More information about the vlc-devel mailing list