Commit 696d0172 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

kwallet: Fix leak on error

CID #1372939
parent 0f78ca27
......@@ -1071,7 +1071,7 @@ kwallet_read_password_list( vlc_keystore* p_keystore, char* psz_entry_name,
DBusMessageIter var_iter;
vlc_keystore_entry* p_entries = NULL;
size_t i_size;
uint8_t* p_secret_decoded;
uint8_t* p_secret_decoded = NULL;
char* p_reply;
char* p_secret;
int i = 0;
......@@ -1179,6 +1179,7 @@ kwallet_read_password_list( vlc_keystore* p_keystore, char* psz_entry_name,
return p_entries;
error:
free( p_secret_decoded );
*pi_count = 0;
vlc_keystore_release_entries( p_entries, i );
if ( msg )
......
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