Update the condition to free apiClient->apiKeys (#4685)

This commit is contained in:
Hui Yu 2019-12-04 09:53:12 +08:00 committed by William Cheng
parent 7eeeab0825
commit 01e84d79a0

View File

@ -50,7 +50,7 @@ void apiClient_free(apiClient_t *apiClient) {
} }
{{/isOAuth}} {{/isOAuth}}
{{#isApiKey}} {{#isApiKey}}
if(apiClient->accessToken) { if(apiClient->apiKeys) {
list_free(apiClient->apiKeys); list_free(apiClient->apiKeys);
} }
{{/isApiKey}} {{/isApiKey}}