keystore/kwallet: free error if set
authorFilip Roséen <filip@atch.se>
Thu, 18 May 2017 10:01:57 +0000 (12:01 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 18 May 2017 15:49:30 +0000 (18:49 +0300)
commitde7f441a73ecbbdd6c98a9b45a5b1de0786465df
treea329981cb32aca9c98725a51e5f8c7cb55c0ed6d
parent34a840a62f68a23be6b16fae7687a1a66a94ddd5
keystore/kwallet: free error if set

If an error occurs leading up to the affected paths, the error-message
has to be freed in order to not leak allocated resources.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/keystore/kwallet.c