Commit 289ad5c5 authored by Rémi Duraffort's avatar Rémi Duraffort

update: fix memory leak (cid #1100857)

parent eb72c5a3
...@@ -343,6 +343,7 @@ static bool GetUpdateFile( update_t *p_update ) ...@@ -343,6 +343,7 @@ static bool GetUpdateFile( update_t *p_update )
p_hash[1] != sign.hash_verification[1] ) p_hash[1] != sign.hash_verification[1] )
{ {
msg_Warn( p_update->p_libvlc, "Bad SHA1 hash for status file" ); msg_Warn( p_update->p_libvlc, "Bad SHA1 hash for status file" );
free( p_hash );
goto error; goto error;
} }
...@@ -350,6 +351,7 @@ static bool GetUpdateFile( update_t *p_update ) ...@@ -350,6 +351,7 @@ static bool GetUpdateFile( update_t *p_update )
!= VLC_SUCCESS ) != VLC_SUCCESS )
{ {
msg_Err( p_update->p_libvlc, "BAD SIGNATURE for status file" ); msg_Err( p_update->p_libvlc, "BAD SIGNATURE for status file" );
free( p_hash );
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment