name deployments: gs_free char * variables to fix leaked strings

Some of the functions used g_strdup without freeing the strings,
these fixes add extra variables to hold and free those values