From 244df9d304d76ebbfe62ecfd6201b134a0150025 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 30 Aug 2013 02:01:25 +0200
Subject: [PATCH] Added memory sanitation TODO.

---
 src/misc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/misc.c b/src/misc.c
index b007dcd..4db3bc3 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -53,10 +53,10 @@ extern void textfile_sizes(FILE * file, uint16_t * linemax_p,
 
 extern void update_log(struct World * world, char * text)
 {
-    static char * last_msg;
-    if (0 == last_msg)
-    {
-        last_msg = calloc(1, sizeof(char));
+    static char * last_msg;                 /* TODO: valgrind is dissatisfied */
+    if (0 == last_msg)                      /* with this calloc'd pointer     */
+    {                                       /* never being freed.             */
+        last_msg = calloc(1, sizeof(char)); /* Rectify this ?                 */
     }
     char * new_text;
     uint16_t len_old = strlen(world->log);
-- 
2.30.2