summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-02-25 23:51:44 +1000
committerAndrew Pamment <apamment@yandex.com>2019-02-25 23:51:44 +1000
commit2d1e7872a40b941b936655f6c3d4fffb0b3791a3 (patch)
tree68775c31a5a379a36bab65215d7f863287bec200
parentfeb05a41ac9e719031bbb7db31f384c2a113178e (diff)
Fix memory leak
-rw-r--r--src/msglib/msglib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/msglib/msglib.c b/src/msglib/msglib.c
index a819364..093fe9a 100644
--- a/src/msglib/msglib.c
+++ b/src/msglib/msglib.c
@@ -14,6 +14,7 @@ void free_message_hdr(struct msg_t *msg) {
free(msg->daddress);
free(msg->msgid);
free(msg->replyid);
+ free(msg->seenby);
free(msg);
}
@@ -188,4 +189,4 @@ struct msg_t *load_message_hdr(struct msg_base_t *mb, int id) {
default:
return jam_message_header(mb->data.jam, id);
}
-} \ No newline at end of file
+}