fix some problems and fix leaks on days 16 to 18

This commit is contained in:
2024-12-19 00:50:16 +01:00
parent 388c09eb70
commit 3460f81af5
7 changed files with 122 additions and 17 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/17 23:03:36 by tomoron #+# #+# */
/* Updated: 2024/12/17 18:40:12 by tomoron ### ########.fr */
/* Updated: 2024/12/18 23:29:22 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -126,7 +126,7 @@ long int resolve_part1(char *input, char **split)
parse_input(split, reg, &ops, &len);
exec_instructions(ops, reg, len);
printf("\nreg : %d, %d, %d", reg[0], reg[1], reg[2]);
free(ops);
printf("\n");
return(0);
}