fixes + valgrind

This commit is contained in:
gazhonsepaskwa
2025-02-11 10:49:27 +01:00
parent 484ec39641
commit 0c76cc2422
5 changed files with 49 additions and 22 deletions

View File

@@ -81,6 +81,7 @@ int main(int ac, char **av, char **envp)
while (!msh->input[0] || is_only_space(msh->input) || g_sig == SIGINT)
{
g_sig = 0;
free(msh->input);
msh->input = powerline(msh);
if (!msh->input)
break;