Revert "alloc path bit table on stack"

This reverts commit 3795c7dee9.
This commit is contained in:
derselbst 2019-10-11 08:57:06 +02:00
parent fe98d51ba2
commit 61aefdd8ac

View file

@ -1939,8 +1939,12 @@ fluid_list_check_linked_mod(char *list_name,
return 0;
}
/* path allocation (on stack) */
path = alloca(sizeof(*path) * mod_count);
/* path allocation */
path = FLUID_MALLOC (sizeof(*path) * mod_count);
if(path == NULL)
{
return FLUID_FAILED;
}
/* initialize path:
- reset bits FLUID_PATH_VALID, FLUID_PATH_CURRENT
@ -2021,6 +2025,9 @@ fluid_list_check_linked_mod(char *list_name,
}
}
/* free path */
FLUID_FREE(path);
return result;
}