From c37b647396a065eb4928257452c785f148bcae50 Mon Sep 17 00:00:00 2001 From: sabetts Date: Wed, 8 Mar 2006 00:33:29 +0000 Subject: * src/main.c (clean_up): properly free rp_frame_numset * src/editor.c (editor_enter): free line->buffer before setting it to the history expansion. * src/completions.c (completions_free): free the rp_completions struct too * src/actions.c (del_frame_undo): free the rp_frame_undo struct too. --- src/actions.c | 1 + src/completions.c | 2 ++ src/editor.c | 1 + src/main.c | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index 741b69c..c41ac91 100644 --- a/src/actions.c +++ b/src/actions.c @@ -376,6 +376,7 @@ del_frame_undo (rp_frame_undo *u) if (!u) return; if (u->frames) free (u->frames); list_del (&(u->node)); + free (u); rp_num_frame_undos--; /* decrement counter */ } diff --git a/src/completions.c b/src/completions.c index db8d75a..4c62d71 100644 --- a/src/completions.c +++ b/src/completions.c @@ -55,6 +55,8 @@ completions_free (rp_completions *c) /* Free the partial string. */ if (c->partial) free (c->partial); + + free (c); } static void diff --git a/src/editor.c b/src/editor.c index 3965464..6aea958 100644 --- a/src/editor.c +++ b/src/editor.c @@ -487,6 +487,7 @@ editor_enter (rp_input_line *line) else /* result == 0 || result == 1 */ { history_add (expansion); + free (line->buffer); line->buffer = expansion; } #endif /* HAVE_HISTORY */ diff --git a/src/main.c b/src/main.c index 2cf6809..f4bcb57 100644 --- a/src/main.c +++ b/src/main.c @@ -748,7 +748,7 @@ clean_up () } /* Free the global frame numset shared by all screens. */ - free (rp_frame_numset); + numset_free (rp_frame_numset); free_xinerama(); -- cgit v1.2.3