From: Mart Lubbers Date: Tue, 26 Jan 2016 19:01:18 +0000 (+0100) Subject: added comment about possible memory leak X-Git-Tag: v0.3^2~10 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=b25f55e7fc44e6fedff55340f3d6e6cdfa413c54;p=CleanReadLine.git added comment about possible memory leak --- diff --git a/Clean System Files/readLine.c b/Clean System Files/readLine.c index 125a75d..bea7de6 100644 --- a/Clean System Files/readLine.c +++ b/Clean System Files/readLine.c @@ -80,6 +80,7 @@ void cleanGetHistoryItem(int num, CleanString *line, CleanString *timestamp){ void cleanInitNewHistoryState(int offset, int flags, int num){ if(history_state != NULL){ + //we should test if we can recursively free the object free(history_state); } history_state = (HISTORY_STATE *)malloc(sizeof(HISTORY_STATE));