diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 1 | ||||
-rw-r--r-- | src/completions.c | 2 | ||||
-rw-r--r-- | src/editor.c | 1 | ||||
-rw-r--r-- | src/main.c | 2 |
4 files changed, 5 insertions, 1 deletions
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 */ @@ -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(); |