free hostname

This commit is contained in:
Chris Cromer 2021-06-26 23:06:11 -04:00
parent 8776bbd6fa
commit 90019c46ba
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ void print_input_line() {
char *hostname = get_hostname();
char *cwd = get_working_directory();
printf(BRIGHT_CYAN "%s" MAGENTA "@" RED "%s" MAGENTA ":" BLUE "%s" MAGENTA "$ " RESET, username, hostname, cwd);
free(hostname);
free(cwd);
}