Free decrypted token if error 11/264511/1
authorLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 23 Sep 2021 13:37:53 +0000 (19:07 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 23 Sep 2021 13:37:53 +0000 (19:07 +0530)
Change-Id: Ic27e47cd9408581092f8b8ebe3f63bd21aa6fac7
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
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;
                }
        }