diff options
author | Julien Dessaux | 2019-09-12 18:00:06 +0200 |
---|---|---|
committer | Julien Dessaux | 2019-09-12 18:00:06 +0200 |
commit | d43beb750651f75f9dcb5f18123008ba9e93352f (patch) | |
tree | aa389c2d1470bcaf902c2e8aa66ec32c9b92e3aa /close_direct_conversations | |
parent | Have the subscription struct hold the unread counters (diff) | |
download | rocket-cli-client-d43beb750651f75f9dcb5f18123008ba9e93352f.tar.gz rocket-cli-client-d43beb750651f75f9dcb5f18123008ba9e93352f.tar.bz2 rocket-cli-client-d43beb750651f75f9dcb5f18123008ba9e93352f.zip |
Fixed code flow with memory free
Diffstat (limited to 'close_direct_conversations')
-rw-r--r-- | close_direct_conversations/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/close_direct_conversations/main.c b/close_direct_conversations/main.c index 9c723f9..122420d 100644 --- a/close_direct_conversations/main.c +++ b/close_direct_conversations/main.c @@ -48,12 +48,13 @@ int main(void) } restapi_im_close(buff); free(buff); + + restapi_logout(); } } else { printf("Couldn't init rest api.\n"); } - restapi_logout(); config_clean(); common_cli_free(); |