From cf5ad56a4a26afc93da63a6064d49f6203c42d03 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Wed, 14 Aug 2013 17:35:15 +1200 Subject: [PATCH] fixing minor memory leak of friendlist --- core/Messenger.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/Messenger.c b/core/Messenger.c index 45e8e3f9..e2d83ada 100644 --- a/core/Messenger.c +++ b/core/Messenger.c @@ -572,7 +572,10 @@ Messenger * initMessenger(void) /* run this before closing shop */ void cleanupMessenger(Messenger *m){ - /* FIXME TODO it seems no one frees friendlist or all the elements status */ + /* FIXME TODO ideally cleanupMessenger will mirror initMessenger + * this requires the other modules to expose cleanup functions + */ + free(m->friendlist); free(m); }