summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:10:39 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:10:39 +0800
commit100c098d55faad03366dffad8572b2d9f75dc936 (patch)
tree82ba057134dbff153d8b1cf52bfa0156d1cdee0f
parent5fe434e35b65a42bc365404a7a6c3436a2a99a8b (diff)
Make sure user is NULL after freed
-rw-r--r--rtclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtclient.c b/rtclient.c
index 1871377..db3a3ba 100644
--- a/rtclient.c
+++ b/rtclient.c
@@ -242,6 +242,7 @@ void rtclient_userfree(rt_user *user)
free(user->comments);
free(user->signature);
free(user);
+ user = NULL;
}
void rtclient_cleanup()