fix invalid free

This commit is contained in:
Chris Cromer 2021-06-26 17:42:46 -04:00
parent 36c5439fee
commit d727732947

View File

@ -55,6 +55,5 @@ void print_input_line() {
char *name = get_user(); char *name = get_user();
char *cwd = get_working_directory(); char *cwd = get_working_directory();
printf(BRIGHT_CYAN "%s" MAGENTA "@" RED "localhost" MAGENTA ":" BLUE "%s" MAGENTA "$ " RESET, name, cwd); printf(BRIGHT_CYAN "%s" MAGENTA "@" RED "localhost" MAGENTA ":" BLUE "%s" MAGENTA "$ " RESET, name, cwd);
free(name);
free(cwd); free(cwd);
} }