fix invalid free
This commit is contained in:
parent
36c5439fee
commit
d727732947
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user