Code

Introduce io_prepare as a fix to plug memory leaks related to argv formatting