add free on days 21 to 25, nothing leaks now (maybe)

This commit is contained in:
2024-12-29 23:54:34 +01:00
parent 27a62a50ad
commit fa519ac929
7 changed files with 158 additions and 14 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/24 16:05:51 by tomoron ### ########.fr */
/* Updated: 2024/12/29 23:51:34 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -144,5 +144,12 @@ long int resolve_part1(char *input, char **split)
}
tmp = tmp->next;
}
while(vars)
{
tmp = vars->next;
free(vars->op);
free(vars);
vars = tmp;
}
return(res);
}