summaryrefslogtreecommitdiff
path: root/member.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 13:15:19 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 13:15:19 +0800
commitf7a913ed569b0c0d7d3b25a18efbf994fe713663 (patch)
treefb1d4fcecd865460c7943c354b594e33dde17432 /member.c
parentfd5d8325585c897f7d7fab7209c043bf1624acea (diff)
Clearing member is separated from logging out
Diffstat (limited to 'member.c')
-rw-r--r--member.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/member.c b/member.c
index b92b59a..90805a2 100644
--- a/member.c
+++ b/member.c
@@ -57,9 +57,13 @@ void interchange_member_changepassword(const char *password_old, const char *pas
}}, "%s", "member/change_password");
}
-void interchange_member_logout(struct interchange_member *member)
+void interchange_member_logout()
{
request(NULL, NULL, NULL, "%s", "logout");
+}
+
+void interchange_member_clear(struct interchange_member *member)
+{
if (member->username)
free(member->username);
if (member->usernick)
@@ -148,5 +152,4 @@ void interchange_member_logout(struct interchange_member *member)
free(member->credit_limit);
if (member->price_level)
free(member->price_level);
- free(member);
}