Made sure that std::auto_ptr is used when giving the memory management
over to the other process
Revert "Made sure that std::auto_ptr is used when giving the memory management"

This reverts commit a1cc8f192dc00bf0de072edfd1efd4783ae67214.