swrap: We need to pass a pointer-pointer to not leak memory.