added comment about possible memory leak
[CleanReadLine.git] / Clean System Files / readLine.c
index e6a2c53..bea7de6 100644 (file)
@@ -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));
@@ -183,4 +184,3 @@ int cleanHistoryTruncateFile(CleanString path, int nlines)
        free(cs_path);
        return errno;
 }
-