summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@nimmagadda.net>2014-08-23 19:07:15 +0500
committerSunil Nimmagadda <sunil@nimmagadda.net>2014-08-23 19:07:15 +0500
commit3d1c9e91db3ff5929436ef93e0e5a5ed45687e79 (patch)
tree6896b836a795e7a240ef057f191c756a07dd5fd5
parentf1447e0e75a4ccf9ad6c8802b13f12f8a0f901b8 (diff)
First clear io then iobuf.
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index cacaa2a..025105e 100644
--- a/session.c
+++ b/session.c
@@ -145,8 +145,8 @@ session_close(struct session *s, int flush)
iobuf_flush(&entry->iobuf, entry->io.sock);
}
- iobuf_clear(&entry->iobuf);
io_clear(&entry->io);
+ iobuf_clear(&entry->iobuf);
imsgev_clear(&entry->iev_maildrop);
logit(LOG_INFO, "%u: session closed", entry->id);
free(entry);