[vlc-commits] update: fix memory leak (cid #1100857)

Rémi Duraffort git at videolan.org
Mon Nov 25 23:01:01 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:26:52 2013 +0100| [289ad5c5e3fef2d8db8141312014753e76133176] | committer: Rémi Duraffort

update: fix memory leak (cid #1100857)

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

 src/misc/update.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/update.c b/src/misc/update.c
index 600e900..4a1a128 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -343,6 +343,7 @@ static bool GetUpdateFile( update_t *p_update )
         p_hash[1] != sign.hash_verification[1] )
     {
         msg_Warn( p_update->p_libvlc, "Bad SHA1 hash for status file" );
+        free( p_hash );
         goto error;
     }
 
@@ -350,6 +351,7 @@ static bool GetUpdateFile( update_t *p_update )
             != VLC_SUCCESS )
     {
         msg_Err( p_update->p_libvlc, "BAD SIGNATURE for status file" );
+        free( p_hash );
         goto error;
     }
 



More information about the vlc-commits mailing list