Plugged some memory leaks by not unnecessarily calling g_strdup (g_string_append...