repositories
/
CleanReadLine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bced03
)
added comment about possible memory leak
author
Mart Lubbers
<mart@martlubbers.net>
Tue, 26 Jan 2016 19:01:18 +0000
(20:01 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Tue, 26 Jan 2016 19:01:18 +0000
(20:01 +0100)
Clean System Files/readLine.c
patch
|
blob
|
history
diff --git
a/Clean System Files/readLine.c
b/Clean System Files/readLine.c
index
125a75d
..
bea7de6
100644
(file)
--- 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));