diff options
author | Chris Hall <followingthepath@gmail.com> | 2013-08-14 17:35:15 +1200 |
---|---|---|
committer | Chris Hall <followingthepath@gmail.com> | 2013-08-14 17:35:15 +1200 |
commit | cf5ad56a4a26afc93da63a6064d49f6203c42d03 (patch) | |
tree | ceac89cc979a94c8166179241eb941c0e076a66e /core/Messenger.c | |
parent | 0590d8325c4ae729fe3f1f96a4d4632ac9eefff4 (diff) |
fixing minor memory leak of friendlist
Diffstat (limited to 'core/Messenger.c')
-rw-r--r-- | core/Messenger.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
572 | 572 | ||
573 | /* run this before closing shop */ | 573 | /* run this before closing shop */ |
574 | void cleanupMessenger(Messenger *m){ | 574 | void cleanupMessenger(Messenger *m){ |
575 | /* FIXME TODO it seems no one frees friendlist or all the elements status */ | 575 | /* FIXME TODO ideally cleanupMessenger will mirror initMessenger |
576 | * this requires the other modules to expose cleanup functions | ||
577 | */ | ||
578 | free(m->friendlist); | ||
576 | free(m); | 579 | free(m); |
577 | } | 580 | } |
578 | 581 | ||