https://gitlab.com/samba-team/samba/-/blob/master/nsswitch/libwbclient/wbc_util.c#L308 You need to call the destructor, not manually release the memory: - if (response.extra_data.data) - free(response.extra_data.data); + winbindd_free_response(&response);
Thanks for the report. I've put this into my normal queue of cleanup patches, it will show up upstream in the next few weeks.
Thanks
This bug was referenced in samba master: 056d8173a95602212614fb46f0d3b36e4efd8ccc