#error: access of union field 'Pointer' while field 'Struct' is active

1 messages · Page 1 of 1 (latest)

trail spire
#

allocator.free takes a slice allocated with allocator.alloc
while auth_request is a struct

#

what does the AuthRequest struct look like
and what does zbor.parse do

#

if this is allocated, surely youd just want to do something like

allocator.free(auth_request.type);
allocator.free(auth_request.data.uid);
allocator.free(auth_request.data.cid);
allocator.free(auth_request.data.interface);
allocator.free(auth_request.data.world);
allocator.free(auth_request.data.version);