Must be the same allocator passed to parse or findNative.
pub fn deinit(self: *LibCInstallation, allocator: Allocator) void
pub fn deinit(self: *LibCInstallation, allocator: Allocator) void {
inline for (@typeInfo(LibCInstallation).@"struct".field_names) |field_name| {
if (@field(self, field_name)) |payload| {
allocator.free(payload);
}
}
self.* = undefined;
}