summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index ff118cc..3a1b686 100644
--- a/main.c
+++ b/main.c
@@ -951,6 +951,11 @@ int main(int argc, char **argv) {
}
session_write(ted);
+
+ arr_foreach_ptr(ted->shell_history, char *, cmd) {
+ free(*cmd);
+ }
+ arr_free(ted->shell_history);
SDL_FreeCursor(ted->cursor_arrow);
SDL_FreeCursor(ted->cursor_ibeam);