18 Sep
2023
18 Sep
'23
5:19 p.m.
On Sat Sep 16 01:02:17 2023 +0000, Fabian Maurer wrote:
I would just use a separate wrapper function to call the base case, and free the array from there, rather than decrementing count like that. Sorry, I'm not sure I understand what you mean... I mean something like:
static bool type_has_full_pointer_recurse(..., struct visited_struct_array *structs) { ... } static bool type_has_full_pointer(...) { struct visited_struct_array structs = {0}; bool ret = type_has_full_pointer_recurse(..., &structs); free(structs.structs); return ret; } -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3151#note_45747