fixing the leak valgrind and conditionnal jump on some functions cause i forget to initialize the var to NULL i just need to remember this

This commit is contained in:
Maoake
2025-12-23 09:21:17 +00:00
parent 96a0a6d8f0
commit 85b83f3cc7
9 changed files with 32 additions and 41 deletions

View File

@@ -17,7 +17,7 @@
void print_tabs(t_tab *preset)
{
t_tab *tab;
tab = preset;
while (tab)
{
@@ -59,6 +59,8 @@ t_stacks *init_big_stacks2(int *tab, int len)
t_stack *a;
stacks = malloc(sizeof(t_stacks));
stacks->a = NULL;
stacks->b = NULL;
if (!stacks)
return (NULL);
a = parsing2(tab, len);