Fix jobs leaks

This commit is contained in:
savalet
2025-05-21 00:16:36 +02:00
parent 5313fcb5c8
commit 3b8794cad0
3 changed files with 3 additions and 0 deletions

1
FIX.md
View File

@@ -8,3 +8,4 @@
- [ ] Fix CTRL+E and ->
- [ ] Multi line editing
- [ ] Foreach in if
- [ ] Output flushing when open an other shell with 42sh

View File

@@ -55,4 +55,5 @@ int builtins_if(ef_t *ef, char **args);
int builtins_echo(ef_t *ef, char **args);
int builtins_astprint(ef_t *, char **args);
int builtins_termname(ef_t *ef, char **);
int builtins_fg(ef_t *ef, char **);
#endif /* BUILTIND_H */

View File

@@ -26,4 +26,5 @@ void free_everything(exec_ctx_t *ec)
}
free(ec->history_command);
free(ec->local->local_var);
free(ec->jobs.jobs);
}