| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sat, 23 Oct 2010 21:20:27 -0400
We're removing pointers from the history without freeing them.
---
history.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/history.c b/history.c
index 34af972..9d45e01 100644
--- a/history.c
+++ b/history.c
@@ -52,6 +52,7 @@ void owl_history_store(owl_history *h, const char *line)
/* if partial is set, remove the first entry first */
if (h->partial) {
+ owl_free(owl_list_get_element(&(h->hist), 0));
owl_list_remove_element(&(h->hist), 0);
}
--
1.7.3.1.g716de
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |