Free decrypted token if error 73/264773/1 tizen_6.0
authorLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 23 Sep 2021 13:37:53 +0000 (19:07 +0530)
committerLOHIT AGARWALLA <l.agarwalla@samsung.com>
Wed, 29 Sep 2021 10:34:50 +0000 (10:34 +0000)
Change-Id: Ic27e47cd9408581092f8b8ebe3f63bd21aa6fac7
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
(cherry picked from commit 62860db61bb0e7b72150264c8c28393e9b9889f5)

common/src/account_crypto_service.c

index cb7855cb91e5601f03a93cfc5b79f0ebc3b82da5..39e301ee30347b10ce40c97c271d6f5c117d3e79 100644 (file)
@@ -320,6 +320,7 @@ int decrypt_access_token(account_s *account)
                else {
                        /* To Do : fail */
                        _ERR("decrypt_access_token fail");
+                       _ACCOUNT_FREE(decrypted_token);
                        return ret;
                }
        }