From d72773294778c407f84aad36036e5fca3f0dcb32 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sat, 26 Jun 2021 17:42:46 -0400 Subject: [PATCH] fix invalid free --- src/console_line.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/console_line.c b/src/console_line.c index dab2281..7ea5e34 100644 --- a/src/console_line.c +++ b/src/console_line.c @@ -55,6 +55,5 @@ void print_input_line() { char *name = get_user(); char *cwd = get_working_directory(); printf(BRIGHT_CYAN "%s" MAGENTA "@" RED "localhost" MAGENTA ":" BLUE "%s" MAGENTA "$ " RESET, name, cwd); - free(name); free(cwd); }